Skip to content

Commit 53fada3

Browse files
committed
update workflows
1 parent 358772e commit 53fada3

File tree

2 files changed

+15
-10
lines changed

2 files changed

+15
-10
lines changed

.github/workflows/docker.yml

+13-8
Original file line numberDiff line numberDiff line change
@@ -8,59 +8,64 @@ env:
88
IMAGE_NAME: ${{ github.repository }}
99

1010
jobs:
11-
build-and-push-image:
12-
runs-on: ubuntu-latest
11+
docker:
1312
strategy:
1413
fail-fast: false
1514
matrix:
1615
include:
1716
- dockerfile: ./bird/Dockerfile
1817
image: ghcr.io/nxthdr/bird
18+
os: [ubuntu-24.04, ubuntu-24.04-arm]
1919
tags: |
2020
ghcr.io/nxthdr/bird:2.16
2121
build-args: |
2222
BIRD_VERSION=2.16
2323
- dockerfile: ./bird/Dockerfile
2424
image: ghcr.io/nxthdr/bird
25+
os: [ubuntu-24.04, ubuntu-24.04-arm]
2526
tags: |
2627
ghcr.io/nxthdr/bird:3.0.0
2728
build-args: |
2829
BIRD_VERSION=3.0.0
30+
2931
permissions:
3032
contents: read
3133
packages: write
3234
attestations: write
3335
id-token: write
3436

37+
runs-on: ${{ matrix.os }}
3538
steps:
3639
- name: Checkout repository
3740
uses: actions/checkout@v4
3841

3942
- name: Log in to the Container registry
40-
uses: docker/login-action@327cd5a69de6c009b9ce71bce8395f28e651bf99
43+
uses: docker/login-action@v3
4144
with:
4245
registry: ${{ env.REGISTRY }}
4346
username: ${{ github.actor }}
4447
password: ${{ secrets.GITHUB_TOKEN }}
4548

4649
- name: Extract metadata (tags, labels) for Docker
4750
id: meta
48-
uses: docker/metadata-action@902fa8ec7d6ecbf8d84d538b9b233a880e428804
51+
uses: docker/metadata-action@v5
4952
with:
5053
images: ${{ matrix.image }}
5154

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
5457

5558
- name: Build and push Docker image
5659
id: push
57-
uses: docker/build-push-action@471d1dc4e07e5cdedd4c2171150001c434f0b7a4
60+
uses: docker/build-push-action@v6
5861
with:
5962
context: .
63+
push: true
64+
provenance: false
6065
file: ${{ matrix.dockerfile }}
6166
build-args: ${{ matrix.build-args }}
6267
tags: ${{ matrix.tags }}
63-
push: true
68+
labels: ${{ steps.meta.outputs.labels }}
6469

6570
- name: Generate artifact attestation
6671
uses: actions/attest-build-provenance@v2

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# Docker Images
22

3-
Generating Docker images for external applications, when necessary.
4-
Images for nxthdr's software are generated in each repository.
3+
Generating Docker images for external applications, when necessary.
4+
Images for nxthdr's software are generated in each repository.

0 commit comments

Comments
 (0)