Skip to content

Commit

Permalink
Tags Java SNAPSHOT containers with the '.dev' version
Browse files Browse the repository at this point in the history
  • Loading branch information
chamikaramj committed Oct 7, 2024
1 parent d4dd58b commit ac1f023
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/beam_Publish_Beam_SDK_Snapshots.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,13 @@ jobs:
comment_phrase: ${{ matrix.job_phrase }}
github_token: ${{ secrets.GITHUB_TOKEN }}
github_job: ${{ matrix.job_name }} (${{ matrix.container_task }})
- name: Find Beam Version
# We extract the Beam version here and tag the containers with it. Version will be in the form "2.xx.y.dev".
# This is needed to run pipelines that use the default environment at HEAD, for example, when a
# pipeline uses an expansion service built from HEAD.
run: |
BEAM_VERSION_LINE=$(cat gradle.properties | grep "sdk_version")
echo "BEAM_VERSION=${BEAM_VERSION_LINE#*sdk_version=}" >> $GITHUB_ENV
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: GCloud Docker credential helper
Expand All @@ -102,6 +109,6 @@ jobs:
arguments: |
-Pjava11Home=$JAVA_HOME_11_X64 \
-Pdocker-repository-root=gcr.io/apache-beam-testing/beam-sdk \
-Pdocker-tag-list=${{ github.sha }},latest \
-Pdocker-tag-list=${{ github.sha }},${BEAM_VERSION},latest \
-Pcontainer-architecture-list=arm64,amd64 \
-Ppush-containers \

0 comments on commit ac1f023

Please sign in to comment.