From 801359a3e3f246a0a10896ae375f26824b83c640 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABtan=20Lehmann?= Date: Fri, 13 Oct 2023 12:02:59 +0200 Subject: [PATCH] update build actions --- .github/workflows/ci.yml | 18 +++++++----------- Earthfile | 3 --- 2 files changed, 7 insertions(+), 14 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2aaf8bda..2d569d3d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -6,6 +6,10 @@ on: tags: - "*" +env: + DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }} + HELM_DIR: ./cockroachdb + jobs: ############################ tests ############################ @@ -13,10 +17,7 @@ jobs: lint-helm: runs-on: [self-hosted] steps: - - uses: eniblock/build/actions/setup@4.1 - id: setup - with: - dockerhub_token: ${{ secrets.DOCKERHUB_TOKEN }} + - uses: eniblock/build/actions/setup@develop - run: earthly +lint ############################ helm ############################ @@ -25,13 +26,8 @@ jobs: runs-on: [self-hosted] needs: [lint-helm] steps: - - uses: eniblock/build/actions/setup@4.1 - id: setup - with: - helmdir: cockroachdb - dockerhub_token: ${{ secrets.DOCKERHUB_TOKEN }} - - name: Build/Publish the helm charts - run: | + - uses: eniblock/build/actions/setup@develop + - run: | earthly \ --secret registry_password=${{ github.token }} \ +publish \ diff --git a/Earthfile b/Earthfile index 0f2d635d..5d4ae816 100644 --- a/Earthfile +++ b/Earthfile @@ -3,9 +3,6 @@ VERSION 0.6 ARG helmhelper=github.com/eniblock/build/helm:develop IMPORT $helmhelper AS helm -ARG deployhelper=github.com/eniblock/build/deploy:develop -IMPORT $deployhelper AS deploy - ARG repository=ghcr.io/eniblock/cockroachdb deps: