From 5708ac20c3acebf3ee82fe59b33bd33cb3515832 Mon Sep 17 00:00:00 2001 From: lystopad Date: Wed, 4 Sep 2024 10:30:12 +0200 Subject: [PATCH] Fix on-trigger (correct branch) (#11860) Fix on-trigger (correct branch) Grammar fixes --- .../ci-cd-main-branch-docker-images.yml | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/.github/workflows/ci-cd-main-branch-docker-images.yml b/.github/workflows/ci-cd-main-branch-docker-images.yml index b4e59ed3106..e4183769a56 100644 --- a/.github/workflows/ci-cd-main-branch-docker-images.yml +++ b/.github/workflows/ci-cd-main-branch-docker-images.yml @@ -1,5 +1,5 @@ -name: Publishing snapshot images -run-name: "Publishing snapshot images " +name: CI-CD build and deploy docker images based on the last commin in the main branch +run-name: "Commit id ${{ github.sha }}: CI-CD build and deploy docker images based on the commit id in the main branch" env: APPLICATION: "erigon" @@ -13,23 +13,19 @@ env: on: push: branches: - - 'master' + - 'main' paths-ignore: - '.github/**' - #tags: - ## only trigger on release tags: - #- 'v*.*.*' - #- 'v*.*.*-*' workflow_dispatch: jobs: Build: runs-on: ubuntu-22.04 - timeout-minutes: 30 + timeout-minutes: 45 steps: - - name: Fast checkout git repository in order to get commit id for further checkouts by this workflow + - name: Fast checkout git repository uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 ## 4.1.7 release with: repository: ${{ env.APP_REPO }} @@ -57,7 +53,7 @@ jobs: - name: Set up Docker Buildx uses: docker/setup-buildx-action@988b5a0280414f521da01fcc63a27aeeb4b104db ## v3.6.1 - - name: Build and push multi-platform docker image based on the last commit in main branch + - name: Build and push multi-platform docker image based on the commit id ${{ github.sha }} in the main branch env: BUILD_VERSION: "main-${{ steps.getCommitId.outputs.id }}" DOCKER_URL: ${{ env.DOCKERHUB_REPOSITORY }} @@ -87,7 +83,7 @@ jobs: - name: Print docker images published run: | - echo Following docker images published: + echo The following docker images have been published: echo "${{ env.DOCKERHUB_REPOSITORY }}:main-${{ steps.getCommitId.outputs.id }}" echo "${{ env.DOCKERHUB_REPOSITORY }}:main-latest" \ No newline at end of file