Separate tags for bookworm and bullseye #11
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: Release master | |
on: # yamllint disable-line rule:truthy | |
push: | |
branches: [master] | |
paths: ['bookworm/Dockerfile'] | |
schedule: | |
- cron: '0 0 * * *' | |
jobs: | |
release: | |
name: Release - Docker image | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v3 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: Docker - Login | |
uses: docker/login-action@v3 | |
with: | |
username: ${{ secrets.DOCKER_USERNAME }} | |
password: ${{ secrets.DOCKER_PASSWORD }} | |
- name: Docker - GHCR Login | |
uses: docker/login-action@v3 | |
with: | |
registry: ghcr.io | |
username: ${{ github.repository_owner }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Docker - Metadata | |
id: meta | |
uses: docker/metadata-action@v5 | |
with: | |
images: | | |
${{ github.repository }} | |
ghcr.io/${{ github.repository }} | |
# generate Docker tags based on the following events/attributes | |
tags: | | |
type=raw,value=steam | |
type=raw,value=steam-bookworm | |
flavor: latest=true | |
- name: Docker - Build / Push | |
id: docker_build | |
uses: docker/build-push-action@v5 | |
with: | |
platforms: linux/arm64 | |
target: bookworm | |
push: true | |
tags: ${{ steps.meta.outputs.tags }} | |
release-root: | |
name: Release Root - Docker image | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v3 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: Docker - Login | |
uses: docker/login-action@v3 | |
with: | |
username: ${{ secrets.DOCKER_USERNAME }} | |
password: ${{ secrets.DOCKER_PASSWORD }} | |
- name: Docker - GHCR Login | |
uses: docker/login-action@v3 | |
with: | |
registry: ghcr.io | |
username: ${{ github.repository_owner }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Docker - Metadata | |
id: meta | |
uses: docker/metadata-action@v5 | |
with: | |
images: | | |
${{ github.repository }} | |
ghcr.io/${{ github.repository }} | |
# generate Docker tags based on the following events/attributes | |
tags: | | |
type=raw,value=root | |
type=raw,value=root-bookworm | |
flavor: latest=false | |
- name: Docker - Build / Push | |
id: docker_build | |
uses: docker/build-push-action@v5 | |
with: | |
platforms: linux/arm64 | |
target: bookworm-root | |
push: true | |
tags: ${{ steps.meta.outputs.tags }} |