Skip to content

Commit c2c7a87

Browse files
committed
(github) update publish workflow
Publish containers to both docker.io and ghcr.io since using g++ cross-compile seems to have resolved the "manifest unknown" issue for `docker` (`podman` v5.0.2 still has the issue).
1 parent ec2c72f commit c2c7a87

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

.github/workflows/publish.yaml

+15-2
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,23 @@ jobs:
1717
contents: read
1818
packages: write
1919
steps:
20-
- uses: docker/setup-qemu-action@v3
2120
- uses: docker/setup-buildx-action@v3
2221
- uses: docker/login-action@v3
2322
with:
2423
username: ${{ vars.DOCKERHUB_USERNAME }}
2524
password: ${{ secrets.DOCKERHUB_TOKEN }}
25+
- uses: docker/login-action@v3
26+
with:
27+
registry: ghcr.io
28+
username: ${{ github.actor }}
29+
password: ${{ secrets.GITHUB_TOKEN }}
2630
- uses: actions/checkout@v4
2731
- uses: docker/metadata-action@v5
2832
id: meta
2933
with:
30-
images: uatuko/ruek
34+
images: |
35+
${{ github.repository }}
36+
ghcr.io/${{ github.repository }}
3137
tags: |
3238
type=raw,value=latest,enable={{is_default_branch}}
3339
type=semver,pattern={{version}}
@@ -36,10 +42,17 @@ jobs:
3642
- name: Build and publish
3743
uses: docker/build-push-action@v6
3844
with:
45+
annotations: ${{ steps.meta.outputs.annotations }}
3946
context: .
4047
file: Containerfile
4148
platforms: |
4249
linux/amd64
4350
linux/arm64
4451
push: true
4552
tags: ${{ steps.meta.outputs.tags }}
53+
- uses: actions/delete-package-versions@v5
54+
with:
55+
package-name: ruek
56+
package-type: container
57+
min-versions-to-keep: 2
58+
delete-only-untagged-versions: true

0 commit comments

Comments
 (0)