|
11 | 11 |
|
12 | 12 | jobs: |
13 | 13 | build-ubuntu-2404: |
14 | | - name: Build Ubuntu 24.04 |
15 | | - runs-on: ubuntu-latest |
16 | | - permissions: |
17 | | - packages: write |
18 | | - contents: read |
19 | | - attestations: write |
20 | | - id-token: write |
21 | | - steps: |
22 | | - - name: Checkout |
23 | | - uses: actions/checkout@v5 |
24 | | - |
25 | | - - name: Setup QEMU |
26 | | - uses: docker/setup-qemu-action@v3 |
27 | | - |
28 | | - - name: Login to Docker Hub |
29 | | - uses: docker/login-action@v3 |
30 | | - with: |
31 | | - username: ${{ secrets.DOCKER_HUB_USERNAME }} |
32 | | - password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }} |
33 | | - |
34 | | - - name: Login to GitHub Container Registry |
35 | | - uses: docker/login-action@v3 |
36 | | - with: |
37 | | - registry: ghcr.io |
38 | | - username: ${{ github.actor }} |
39 | | - password: ${{ secrets.GITHUB_TOKEN }} |
40 | | - |
41 | | - - name: Extract metadata (tags, labels) for Docker |
42 | | - id: meta |
43 | | - uses: docker/metadata-action@v5 |
44 | | - with: |
45 | | - images: | |
46 | | - gameservermanagers/steamcmd |
47 | | - ghcr.io/gameservermanagers/steamcmd |
48 | | - tags: | |
49 | | - latest |
50 | | - ubuntu |
51 | | - ubuntu-24.04 |
52 | | -
|
53 | | - - name: Build and push (Ubuntu 24.04) |
54 | | - uses: docker/build-push-action@v6 |
55 | | - with: |
56 | | - context: . |
57 | | - file: ./Dockerfile.ubuntu-2404 |
58 | | - platforms: linux/amd64 |
59 | | - push: true |
60 | | - tags: ${{ steps.meta.outputs.tags }} |
61 | | - labels: ${{ steps.meta.outputs.labels }} |
| 14 | + name: Build Ubuntu 24.04 |
| 15 | + runs-on: ubuntu-latest |
| 16 | + permissions: |
| 17 | + packages: write |
| 18 | + contents: read |
| 19 | + attestations: write |
| 20 | + id-token: write |
| 21 | + steps: |
| 22 | + - name: Checkout |
| 23 | + uses: actions/checkout@v5 |
| 24 | + |
| 25 | + - name: Setup QEMU |
| 26 | + uses: docker/setup-qemu-action@v3 |
| 27 | + |
| 28 | + - name: Login to Docker Hub |
| 29 | + uses: docker/login-action@v3 |
| 30 | + with: |
| 31 | + username: ${{ secrets.DOCKER_HUB_USERNAME }} |
| 32 | + password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }} |
| 33 | + |
| 34 | + - name: Login to GitHub Container Registry |
| 35 | + uses: docker/login-action@v3 |
| 36 | + with: |
| 37 | + registry: ghcr.io |
| 38 | + username: ${{ github.actor }} |
| 39 | + password: ${{ secrets.GITHUB_TOKEN }} |
| 40 | + |
| 41 | + - name: Extract metadata (tags, labels) for Docker |
| 42 | + id: meta |
| 43 | + uses: docker/metadata-action@v5 |
| 44 | + with: |
| 45 | + images: | |
| 46 | + gameservermanagers/steamcmd |
| 47 | + ghcr.io/gameservermanagers/steamcmd |
| 48 | + tags: | |
| 49 | + latest |
| 50 | + ubuntu |
| 51 | + ubuntu-24.04 |
| 52 | +
|
| 53 | + - name: Build and push (Ubuntu 24.04) |
| 54 | + uses: docker/build-push-action@v6 |
| 55 | + with: |
| 56 | + context: . |
| 57 | + file: ./Dockerfile.ubuntu-2404 |
| 58 | + platforms: linux/amd64 |
| 59 | + push: true |
| 60 | + tags: ${{ steps.meta.outputs.tags }} |
| 61 | + labels: ${{ steps.meta.outputs.labels }} |
62 | 62 |
|
63 | 63 | build-ubuntu-2204: |
64 | 64 | name: Build Ubuntu 22.04 |
@@ -158,7 +158,7 @@ jobs: |
158 | 158 |
|
159 | 159 | package-cleanup: |
160 | 160 | name: Cleanup Old GitHub Packages |
161 | | - needs: [ build-ubuntu-2004, build-ubuntu-2204, build-ubuntu-2404 ] |
| 161 | + needs: [build-ubuntu-2004, build-ubuntu-2204, build-ubuntu-2404] |
162 | 162 | runs-on: ubuntu-latest |
163 | 163 | steps: |
164 | 164 | - name: Delete Package Versions |
|
0 commit comments