Skip to content

Commit 29c11a2

Browse files
authored
Merge pull request #32673: Tags Java SNAPSHOT containers with the '.dev' version
2 parents 2cc6efa + ac1f023 commit 29c11a2

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/beam_Publish_Beam_SDK_Snapshots.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,13 @@ jobs:
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 \

0 commit comments

Comments
 (0)