Skip to content

Commit e09a7b1

Browse files
committed
fix metadata
1 parent 0395091 commit e09a7b1

File tree

1 file changed

+50
-50
lines changed

1 file changed

+50
-50
lines changed

.github/workflows/docker-publish.yml

Lines changed: 50 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -10,56 +10,56 @@ on:
1010

1111
jobs:
1212
build-ubuntu-2404:
13-
name: Build Ubuntu 24.04
14-
runs-on: ubuntu-latest
15-
permissions:
16-
packages: write
17-
contents: read
18-
attestations: write
19-
id-token: write
20-
steps:
21-
- name: Checkout
22-
uses: actions/checkout@v4
23-
24-
- name: Setup QEMU
25-
uses: docker/setup-qemu-action@v3
26-
27-
- name: Login to Docker Hub
28-
uses: docker/login-action@v3
29-
with:
30-
username: ${{ secrets.DOCKER_HUB_USERNAME }}
31-
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
32-
33-
- name: Login to GitHub Container Registry
34-
uses: docker/login-action@v3
35-
with:
36-
registry: ghcr.io
37-
username: ${{ github.actor }}
38-
password: ${{ secrets.GITHUB_TOKEN }}
39-
40-
- name: Setup Docker Buildx
41-
uses: docker/setup-buildx-action@v3
42-
43-
- name: Extract metadata (tags, labels) for Docker
44-
id: meta
45-
uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7
46-
with:
47-
images: my-docker-hub-namespace/my-docker-hub-repository
48-
49-
- name: Build and push (Ubuntu 24.04)
50-
uses: docker/build-push-action@v6
51-
with:
52-
context: .
53-
file: ./Dockerfile.ubuntu-2404
54-
platforms: linux/amd64
55-
push: true
56-
tags: |
57-
gameservermanagers/steamcmd:latest
58-
gameservermanagers/steamcmd:ubuntu
59-
gameservermanagers/steamcmd:ubuntu-24.04
60-
ghcr.io/gameservermanagers/steamcmd:latest
61-
ghcr.io/gameservermanagers/steamcmd:ubuntu
62-
ghcr.io/gameservermanagers/steamcmd:ubuntu-24.04
13+
name: Build Ubuntu 24.04
14+
runs-on: ubuntu-latest
15+
permissions:
16+
packages: write
17+
contents: read
18+
attestations: write
19+
id-token: write
20+
steps:
21+
- name: Checkout
22+
uses: actions/checkout@v4
23+
24+
- name: Setup QEMU
25+
uses: docker/setup-qemu-action@v3
26+
27+
- name: Login to Docker Hub
28+
uses: docker/login-action@v3
29+
with:
30+
username: ${{ secrets.DOCKER_HUB_USERNAME }}
31+
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
32+
33+
- name: Login to GitHub Container Registry
34+
uses: docker/login-action@v3
35+
with:
36+
registry: ghcr.io
37+
username: ${{ github.actor }}
38+
password: ${{ secrets.GITHUB_TOKEN }}
39+
40+
- name: Setup Docker Buildx
41+
uses: docker/setup-buildx-action@v3
42+
43+
- name: Extract metadata (tags, labels) for Docker
44+
id: meta
45+
uses: docker/metadata-action@v5
46+
with:
47+
images: |
48+
gameservermanagers/steamcmd:latest
49+
gameservermanagers/steamcmd:ubuntu
50+
gameservermanagers/steamcmd:ubuntu-24.04
51+
ghcr.io/gameservermanagers/steamcmd:latest
52+
ghcr.io/gameservermanagers/steamcmd:ubuntu
53+
ghcr.io/gameservermanagers/steamcmd:ubuntu-24.04
54+
55+
- name: Build and push (Ubuntu 24.04)
56+
uses: docker/build-push-action@v6
57+
with:
58+
context: .
59+
file: ./Dockerfile.ubuntu-2404
60+
platforms: linux/amd64
61+
push: true
62+
tags: ${{ steps.meta.outputs.tags }}
6363

6464
build-ubuntu-2204:
6565
name: Build Ubuntu 22.04

0 commit comments

Comments
 (0)