build(deps): bump eclipse-temurin from 22-jre-alpine to 23-jre-alpine in /java_22 #90
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: Publish Docker | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
github: | |
strategy: | |
matrix: | |
repo: [ java_21, java_22 ] | |
runs-on: ubuntu-latest | |
continue-on-error: true | |
permissions: | |
contents: read | |
packages: write | |
attestations: write | |
id-token: write | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@master | |
- name: Extract branch name | |
shell: bash | |
run: echo "##[set-output name=branch;]${GITHUB_REF#refs/heads/}" | |
id: extract_branch | |
- name: Login to GitHub Container Registry | |
uses: docker/login-action@v1 | |
if: ${{ github.event_name != 'pull_request' }} | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v3 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: Build and push | |
uses: docker/build-push-action@v6 | |
with: | |
context: ${{ matrix.repo }} | |
platforms: linux/amd64,linux/arm64 | |
push: ${{ github.event_name != 'pull_request' }} | |
provenance: false | |
tags: | | |
ghcr.io/stroeer/docker-images:${{ matrix.repo }}-latest |