Skip to content

Commit

Permalink
[Distroless] Publish Java SDK distroless variants (#33485)
Browse files Browse the repository at this point in the history
* Add docker/push step

* Fix missing tag error

* Try cli options full name

* Update beam_Publish_Java_SDK_Distroless_Snapshots.yml

* Update beam_Publish_Java_SDK_Distroless_Snapshots.yml
  • Loading branch information
damondouglas authored Jan 3, 2025
1 parent 98c8534 commit 4a32482
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/beam_Publish_Java_SDK_Distroless_Snapshots.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,5 +83,13 @@ jobs:
- name: GCloud Docker credential helper
run: |
gcloud auth configure-docker ${{ env.docker_registry }}
# TODO(https://github.com/apache/beam/issues/33201): create after merging into main branch
# - name: Build and push Java distroless image
- name: Build and push Java distroless image
run: |
docker buildx build --push \
-t gcr.io/apache-beam-testing/beam-sdk/beam_${{ matrix.java_version }}_sdk_distroless:${{ github.sha }} \
-t gcr.io/apache-beam-testing/beam-sdk/beam_${{ matrix.java_version }}_sdk_distroless:${BEAM_VERSION} \
-t gcr.io/apache-beam-testing/beam-sdk/beam_${{ matrix.java_version }}_sdk_distroless:latest \
-f sdks/java/container/Dockerfile-distroless \
--build-arg=BEAM_BASE=gcr.io/apache-beam-testing/beam-sdk/beam_${{ matrix.java_version }}_sdk:${BEAM_VERSION} \
--build-arg=DISTROLESS_BASE=gcr.io/distroless/${{ matrix.java_version }}-debian12 \
.

0 comments on commit 4a32482

Please sign in to comment.