Skip to content

Commit 97de2ae

Browse files
authored
Publish updated containers regularly (#33169)
* Update republish_released_docker_containers.yml * Add to post-release instructions * Add to core infra
1 parent 37c3e6d commit 97de2ae

File tree

3 files changed

+15
-3
lines changed

3 files changed

+15
-3
lines changed

.github/workflows/republish_released_docker_containers.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,17 @@ on:
2525
RELEASE:
2626
description: Beam version of current release (e.g. 2.XX.0)
2727
required: true
28-
default: '2.XX.0'
28+
default: ''
2929
RC:
3030
description: Integer RC version for the release (e.g. 3 for RC3)
3131
required: true
32+
default: ''
33+
schedule:
34+
- cron: "0 6 * * 1"
3235
env:
3336
docker_registry: gcr.io
37+
release: ${{ github.event.inputs.RELEASE || "2.60.0" }}
38+
rc: ${{ github.event.inputs.RC || "2" }}
3439

3540
jobs:
3641

@@ -40,7 +45,7 @@ jobs:
4045
- name: Checkout
4146
uses: actions/checkout@v4
4247
with:
43-
ref: "v${{ github.event.inputs.RELEASE }}-RC${{ github.event.inputs.RC }}"
48+
ref: "v${{ env.release }}-RC${{ env.rc }}"
4449
repository: apache/beam
4550
- name: Free Disk Space (Ubuntu)
4651
uses: jlumbroso/[email protected]
@@ -64,5 +69,5 @@ jobs:
6469
run: |
6570
gcloud auth configure-docker ${{ env.docker_registry }}
6671
- name: Push docker images
67-
run: ./gradlew :pushAllDockerImages -PisRelease -Pdocker-pull-licenses -Pprune-images -Pdocker-repository-root=gcr.io/apache-beam-testing/updated_released_container_images -Pdocker-tag=${{ github.event.inputs.RELEASE }}rc${{ github.event.inputs.RC }} --no-daemon --no-parallel
72+
run: ./gradlew :pushAllDockerImages -PisRelease -Pdocker-pull-licenses -Pprune-images -Pdocker-repository-root=gcr.io/apache-beam-testing/updated_released_container_images -Pdocker-tag=${{ env.release }}rc${{ env.rc }} --no-daemon --no-parallel
6873

.test-infra/metrics/sync/github/github_runs_prefetcher/code/config.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ categories:
4343
- "Cancel Stale Dataflow Jobs"
4444
- "pr-bot-pr-updates"
4545
- "pr-bot-new-prs"
46+
- "Republish Released Docker Images"
4647
# Tests we want monitored more closely. Only add suites if you are willing to help keep them green :)
4748
# Usually will be postcommits since PreCommits are more likely to be noticed.
4849
- name: important_signals

contributor-docs/release-guide.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1309,6 +1309,12 @@ You can also update the versions in https://github.com/apache/beam-starter-pytho
13091309
https://github.com/apache/beam-starter-go if you would like. This is optional because dependabot will automatically
13101310
open a PR to do this if you don't.
13111311
1312+
### Update the container republishing workflow
1313+
1314+
After the Beam release is published, update the default versions in https://github.com/apache/beam/blob/master/.github/workflows/republish_released_docker_containers.yml#L37
1315+
to point to the most recent release and its accepted RC version. This script will then regularly
1316+
republish containers using the same underlying source (but updated base images) to allow users to stay ahead of vulnerabilities.
1317+
13121318
### Update Beam Playground
13131319
13141320
After new Beam Release is published, Beam Playground can be updated following the steps below. If any steps fail, make

0 commit comments

Comments
 (0)