File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change 8080 comment_phrase : ${{ matrix.job_phrase }}
8181 github_token : ${{ secrets.GITHUB_TOKEN }}
8282 github_job : ${{ matrix.job_name }} (${{ matrix.container_task }})
83+ - name : Find Beam Version
84+ # We extract the Beam version here and tag the containers with it. Version will be in the form "2.xx.y.dev".
85+ # This is needed to run pipelines that use the default environment at HEAD, for example, when a
86+ # pipeline uses an expansion service built from HEAD.
87+ run : |
88+ BEAM_VERSION_LINE=$(cat gradle.properties | grep "sdk_version")
89+ echo "BEAM_VERSION=${BEAM_VERSION_LINE#*sdk_version=}" >> $GITHUB_ENV
8390 - name : Set up Docker Buildx
8491 uses : docker/setup-buildx-action@v1
8592 - name : GCloud Docker credential helper
@@ -102,6 +109,6 @@ jobs:
102109 arguments : |
103110 -Pjava11Home=$JAVA_HOME_11_X64 \
104111 -Pdocker-repository-root=gcr.io/apache-beam-testing/beam-sdk \
105- -Pdocker-tag-list=${{ github.sha }},latest \
112+ -Pdocker-tag-list=${{ github.sha }},${BEAM_VERSION}, latest \
106113 -Pcontainer-architecture-list=arm64,amd64 \
107114 -Ppush-containers \
You can’t perform that action at this time.
0 commit comments