From f0a738583f47b475d593f93d2140b792dda2988a Mon Sep 17 00:00:00 2001 From: Gabriel Montes Date: Thu, 13 Jun 2024 12:07:21 -0400 Subject: [PATCH] Update Docker workflow for Hemi --- .github/workflows/ci.yml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6c2f756d23..f9e1b58c96 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,7 +7,7 @@ on: types: [released] env: - DOCKER_IMAGE_REGISTRY: safeglobal + DOCKER_IMAGE_REGISTRY: hemilabs DOCKER_IMAGE_NAME: safe-client-gateway-nest DOCKER_BUILD_IMAGE_TAG: buildcache @@ -112,7 +112,7 @@ jobs: parallel-finished: true docker-publish-staging: - if: (github.event_name == 'push' && github.ref == 'refs/heads/main') + if: (github.event_name == 'push' && github.ref == 'refs/heads/hemi-main') needs: [prettier, es-lint, tests-finish] runs-on: ubuntu-latest steps: @@ -126,8 +126,8 @@ jobs: - uses: docker/setup-buildx-action@v3 - uses: docker/login-action@v3 with: - username: ${{ secrets.DOCKER_USER }} - password: ${{ secrets.DOCKER_PASSWORD }} + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} - uses: docker/build-push-action@v5 with: platforms: linux/amd64,linux/arm64 @@ -155,8 +155,8 @@ jobs: - uses: docker/setup-buildx-action@v3 - uses: docker/login-action@v3 with: - username: ${{ secrets.DOCKER_USER }} - password: ${{ secrets.DOCKER_PASSWORD }} + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} - uses: docker/build-push-action@v5 with: platforms: linux/amd64,linux/arm64 @@ -172,6 +172,7 @@ jobs: cache-to: type=registry,ref=${{ env.DOCKER_IMAGE_REGISTRY }}/${{ env.DOCKER_IMAGE_NAME }}:${{ env.DOCKER_BUILD_IMAGE_TAG }},mode=max autodeploy: + if: false runs-on: ubuntu-latest needs: [docker-publish-staging] steps: