|
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@v5 |
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: Extract metadata (tags, labels) for Docker |
41 | | - id: meta |
42 | | - uses: docker/metadata-action@v5 |
43 | | - with: |
44 | | - images: | |
45 | | - gameservermanagers/linuxgsm |
46 | | - ghcr.io/gameservermanagers/linuxgsm |
47 | | - tags: | |
48 | | - latest |
49 | | - ubuntu |
50 | | - ubuntu-24.04 |
51 | | -
|
52 | | - - name: Build and push (Ubuntu 24.04) |
53 | | - uses: docker/build-push-action@v6 |
54 | | - with: |
55 | | - context: . |
56 | | - file: ./Dockerfile.ubuntu-2404 |
57 | | - platforms: linux/amd64 |
58 | | - push: true |
59 | | - tags: ${{ steps.meta.outputs.tags }} |
60 | | - labels: ${{ steps.meta.outputs.labels }} |
| 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@v5 |
| 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: Extract metadata (tags, labels) for Docker |
| 41 | + id: meta |
| 42 | + uses: docker/metadata-action@v5 |
| 43 | + with: |
| 44 | + images: | |
| 45 | + gameservermanagers/linuxgsm |
| 46 | + ghcr.io/gameservermanagers/linuxgsm |
| 47 | + tags: | |
| 48 | + latest |
| 49 | + ubuntu |
| 50 | + ubuntu-24.04 |
| 51 | +
|
| 52 | + - name: Build and push (Ubuntu 24.04) |
| 53 | + uses: docker/build-push-action@v6 |
| 54 | + with: |
| 55 | + context: . |
| 56 | + file: ./Dockerfile.ubuntu-2404 |
| 57 | + platforms: linux/amd64 |
| 58 | + push: true |
| 59 | + tags: ${{ steps.meta.outputs.tags }} |
| 60 | + labels: ${{ steps.meta.outputs.labels }} |
61 | 61 |
|
62 | 62 | build-ubuntu-2204: |
63 | 63 | name: Build Ubuntu 22.04 |
@@ -157,7 +157,7 @@ jobs: |
157 | 157 |
|
158 | 158 | package-cleanup: |
159 | 159 | name: Cleanup Old GitHub Packages |
160 | | - needs: [ build-ubuntu-2004, build-ubuntu-2204, build-ubuntu-2404 ] |
| 160 | + needs: [build-ubuntu-2004, build-ubuntu-2204, build-ubuntu-2404] |
161 | 161 | runs-on: ubuntu-latest |
162 | 162 | steps: |
163 | 163 | - name: Delete Package Versions |
|
0 commit comments