Skip to content

fix(): change naming schema of the docker images #89

fix(): change naming schema of the docker images

fix(): change naming schema of the docker images #89

Workflow file for this run

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