From f1454a1f3c63b37152613a2a5e06b5cac362392d Mon Sep 17 00:00:00 2001 From: sbaizet <74511063+sbaizet-ledger@users.noreply.github.com> Date: Fri, 11 Oct 2024 15:56:25 +0200 Subject: [PATCH] ci: use workflow dispatch (#52) --- .github/workflows/docker-release.yml | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/.github/workflows/docker-release.yml b/.github/workflows/docker-release.yml index 5611177..c16792a 100644 --- a/.github/workflows/docker-release.yml +++ b/.github/workflows/docker-release.yml @@ -1,9 +1,9 @@ name: Build and publish scroll-alpine image +# This workflow aims to build images from the feat-deterministic-deployment branch on: - push: - tags: - - 'v*.*.*' + workflow_dispatch: + jobs: build: name: Clone, Build, Publish @@ -41,7 +41,6 @@ jobs: - name: Build deploy image id: build_deploy_image env: - REGISTRY: ${{ steps.login-ecr.outputs.registry }} REPOSITORY: scrolltech/scroll-stack-contracts uses: docker/build-push-action@v3 with: @@ -50,13 +49,11 @@ jobs: context: . file: docker/Dockerfile.deploy tags: | - ${{ env.REPOSITORY }}:deploy-${{ github.ref_name }} - ${{ env.REPOSITORY }}:latest + ${{ env.REPOSITORY }}:deploy-${{ github.sha }} - name: Build gen image id: build_gen_image env: - REGISTRY: ${{ steps.login-ecr.outputs.registry }} REPOSITORY: scrolltech/scroll-stack-contracts uses: docker/build-push-action@v3 with: @@ -65,5 +62,4 @@ jobs: context: . file: docker/Dockerfile.gen-configs tags: | - ${{ env.REPOSITORY }}:gen-configs-${{ github.ref_name }} - ${{ env.REPOSITORY }}:latest + ${{ env.REPOSITORY }}:gen-configs-${{ github.sha }}