Bump actions/setup-java from 3 to 4 (#4910) #464
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Tag Base Images CI | |
on: | |
push: | |
branches: [ 'main', 'tag/**', 'release/v*' ] | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: false | |
jobs: | |
tag-base-images: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup JDK 11 | |
id: setup-java-11 | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'temurin' | |
java-version: '11' | |
- name: Setup JDK 17 | |
id: setup-java-17 | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'temurin' | |
java-version: '17' | |
- name: Setup Crane | |
if: ${{ startsWith(github.ref, 'refs/heads/release/v') }} | |
uses: imjasonh/[email protected] | |
- name: Set JAVA_HOME | |
run: echo "JAVA_HOME=${{ steps.setup-java-11.outputs.path }}" >> $GITHUB_ENV | |
- name: Setup gradle properties | |
run: | | |
.github/scripts/gradle-properties.sh >> gradle.properties | |
cat gradle.properties | |
- name: Login to ghcr.io | |
if: github.event_name != 'pull_request' | |
uses: docker/login-action@v3 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Create Crane scripts | |
uses: burrunan/gradle-cache-action@v1 | |
with: | |
job-id: crane-scripts | |
arguments: createCraneTagScript | |
gradle-version: wrapper | |
- name: Tag upstream images | |
if: ${{ startsWith(github.ref, 'refs/heads/release/v') }} | |
run: | | |
./docker/registry/cpp-clients-multi-base/build/crane/retag.sh | |
./docker/registry/protoc-base/build/crane/retag.sh | |
./docker/registry/slim-base/build/crane/retag.sh | |
./docker/registry/server-base/build/crane/retag.sh |