File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed
Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change 9191 run : |
9292 BEAM_VERSION_LINE=$(cat gradle.properties | grep "sdk_version")
9393 echo "BEAM_VERSION=${BEAM_VERSION_LINE#*sdk_version=}" >> $GITHUB_ENV
94+ - name : Set latest tag only on master branch
95+ if : github.ref == 'refs/heads/master'
96+ run : echo "LATEST_TAG=,latest" >> $GITHUB_ENV
9497 - name : Set up Docker Buildx
9598 uses : docker/setup-buildx-action@v1
9699 - name : Authenticate on GCP
@@ -120,6 +123,6 @@ jobs:
120123 arguments : |
121124 -Pjava11Home=$JAVA_HOME_11_X64 \
122125 -Pdocker-repository-root=gcr.io/apache-beam-testing/beam-sdk \
123- -Pdocker-tag-list=${{ github.sha }},${BEAM_VERSION},latest \
126+ -Pdocker-tag-list=${{ github.sha }},${BEAM_VERSION}${LATEST_TAG} \
124127 -Pcontainer-architecture-list=arm64,amd64 \
125128 -Ppush-containers \
Original file line number Diff line number Diff line change 7070 github_job : ${{ matrix.job_name }} (${{ matrix.job_phrase }})
7171 - name : Setup environment
7272 uses : ./.github/actions/setup-environment-action
73+ - name : Set latest tag only on master branch
74+ if : github.ref == 'refs/heads/master'
75+ run : echo "LATEST_TAG=,latest" >> $GITHUB_ENV
7376 - name : GCloud Docker credential helper
7477 run : |
7578 gcloud auth configure-docker ${{ env.docker_registry }}
@@ -79,11 +82,11 @@ jobs:
7982 gradle-command : :runners:spark:3:job-server:container:dockerPush
8083 arguments : |
8184 -Pdocker-repository-root=gcr.io/apache-beam-testing/beam_portability \
82- -Pdocker-tag-list=latest \
85+ -Pdocker-tag-list=${{ github.sha }}${LATEST_TAG}
8386 - name : run Publish Docker Snapshots script for Flink
8487 uses : ./.github/actions/gradle-command-self-hosted-action
8588 with :
8689 gradle-command : :runners:flink:1.17:job-server-container:dockerPush
8790 arguments : |
8891 -Pdocker-repository-root=gcr.io/apache-beam-testing/beam_portability \
89- -Pdocker-tag-list=latest
92+ -Pdocker-tag-list=${{ github.sha }}${LATEST_TAG}
You can’t perform that action at this time.
0 commit comments