|
10 | 10 |
|
11 | 11 | jobs:
|
12 | 12 | 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 }} |
63 | 63 |
|
64 | 64 | build-ubuntu-2204:
|
65 | 65 | name: Build Ubuntu 22.04
|
|
0 commit comments