Browse Source

fix metadata

main
Daniel Gibbs 2 months ago
parent
commit
e09a7b1bb0
  1. 100
      .github/workflows/docker-publish.yml

100
.github/workflows/docker-publish.yml

@ -10,56 +10,56 @@ on:
jobs:
build-ubuntu-2404:
name: Build Ubuntu 24.04
runs-on: ubuntu-latest
permissions:
packages: write
contents: read
attestations: write
id-token: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup QEMU
uses: docker/setup-qemu-action@v3
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Setup Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7
with:
images: my-docker-hub-namespace/my-docker-hub-repository
- name: Build and push (Ubuntu 24.04)
uses: docker/build-push-action@v6
with:
context: .
file: ./Dockerfile.ubuntu-2404
platforms: linux/amd64
push: true
tags: |
gameservermanagers/steamcmd:latest
gameservermanagers/steamcmd:ubuntu
gameservermanagers/steamcmd:ubuntu-24.04
ghcr.io/gameservermanagers/steamcmd:latest
ghcr.io/gameservermanagers/steamcmd:ubuntu
ghcr.io/gameservermanagers/steamcmd:ubuntu-24.04
name: Build Ubuntu 24.04
runs-on: ubuntu-latest
permissions:
packages: write
contents: read
attestations: write
id-token: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup QEMU
uses: docker/setup-qemu-action@v3
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Setup Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v5
with:
images: |
gameservermanagers/steamcmd:latest
gameservermanagers/steamcmd:ubuntu
gameservermanagers/steamcmd:ubuntu-24.04
ghcr.io/gameservermanagers/steamcmd:latest
ghcr.io/gameservermanagers/steamcmd:ubuntu
ghcr.io/gameservermanagers/steamcmd:ubuntu-24.04
- name: Build and push (Ubuntu 24.04)
uses: docker/build-push-action@v6
with:
context: .
file: ./Dockerfile.ubuntu-2404
platforms: linux/amd64
push: true
tags: ${{ steps.meta.outputs.tags }}
build-ubuntu-2204:
name: Build Ubuntu 22.04

Loading…
Cancel
Save