|
8 | 8 | IMAGE_NAME: ${{ github.repository }}
|
9 | 9 |
|
10 | 10 | jobs:
|
11 |
| - build-and-push-image: |
12 |
| - runs-on: ubuntu-latest |
| 11 | + docker: |
13 | 12 | strategy:
|
14 | 13 | fail-fast: false
|
15 | 14 | matrix:
|
16 | 15 | include:
|
17 | 16 | - dockerfile: ./bird/Dockerfile
|
18 | 17 | image: ghcr.io/nxthdr/bird
|
| 18 | + os: [ubuntu-24.04, ubuntu-24.04-arm] |
19 | 19 | tags: |
|
20 | 20 | ghcr.io/nxthdr/bird:2.16
|
21 | 21 | build-args: |
|
22 | 22 | BIRD_VERSION=2.16
|
23 | 23 | - dockerfile: ./bird/Dockerfile
|
24 | 24 | image: ghcr.io/nxthdr/bird
|
| 25 | + os: [ubuntu-24.04, ubuntu-24.04-arm] |
25 | 26 | tags: |
|
26 | 27 | ghcr.io/nxthdr/bird:3.0.0
|
27 | 28 | build-args: |
|
28 | 29 | BIRD_VERSION=3.0.0
|
| 30 | +
|
29 | 31 | permissions:
|
30 | 32 | contents: read
|
31 | 33 | packages: write
|
32 | 34 | attestations: write
|
33 | 35 | id-token: write
|
34 | 36 |
|
| 37 | + runs-on: ${{ matrix.os }} |
35 | 38 | steps:
|
36 | 39 | - name: Checkout repository
|
37 | 40 | uses: actions/checkout@v4
|
38 | 41 |
|
39 | 42 | - name: Log in to the Container registry
|
40 |
| - uses: docker/login-action@327cd5a69de6c009b9ce71bce8395f28e651bf99 |
| 43 | + uses: docker/login-action@v3 |
41 | 44 | with:
|
42 | 45 | registry: ${{ env.REGISTRY }}
|
43 | 46 | username: ${{ github.actor }}
|
44 | 47 | password: ${{ secrets.GITHUB_TOKEN }}
|
45 | 48 |
|
46 | 49 | - name: Extract metadata (tags, labels) for Docker
|
47 | 50 | id: meta
|
48 |
| - uses: docker/metadata-action@902fa8ec7d6ecbf8d84d538b9b233a880e428804 |
| 51 | + uses: docker/metadata-action@v5 |
49 | 52 | with:
|
50 | 53 | images: ${{ matrix.image }}
|
51 | 54 |
|
52 |
| - - name: Sync theme submodule |
53 |
| - run: git submodule sync && git submodule update --init --recursive |
| 55 | + - name: Set up Docker Buildx |
| 56 | + uses: docker/setup-buildx-action@v3 |
54 | 57 |
|
55 | 58 | - name: Build and push Docker image
|
56 | 59 | id: push
|
57 |
| - uses: docker/build-push-action@471d1dc4e07e5cdedd4c2171150001c434f0b7a4 |
| 60 | + uses: docker/build-push-action@v6 |
58 | 61 | with:
|
59 | 62 | context: .
|
| 63 | + push: true |
| 64 | + provenance: false |
60 | 65 | file: ${{ matrix.dockerfile }}
|
61 | 66 | build-args: ${{ matrix.build-args }}
|
62 | 67 | tags: ${{ matrix.tags }}
|
63 |
| - push: true |
| 68 | + labels: ${{ steps.meta.outputs.labels }} |
64 | 69 |
|
65 | 70 | - name: Generate artifact attestation
|
66 | 71 | uses: actions/attest-build-provenance@v2
|
|
0 commit comments