Skip to content

Commit 74bd97a

Browse files
committed
Move Docker build to separate buildx workflow, remove Dockerfile.goreleaser
1 parent f0939b3 commit 74bd97a

3 files changed

Lines changed: 22 additions & 67 deletions

File tree

.github/workflows/release.yaml

Lines changed: 21 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -45,14 +45,13 @@ jobs:
4545
env:
4646
GITHUB_TOKEN: ${{ secrets.HOMEBREW_TAP_GITHUB_TOKEN }}
4747

48-
# Prepare a clean binary layout for the multi-arch Docker build.
49-
# Goreleaser outputs to dist/kefw2ui_linux_amd64_v1/ and
50-
# dist/kefw2ui_linux_arm64_v8.0/; we normalize to dist/linux_{arch}/.
51-
- name: Prepare Docker binaries
52-
run: |
53-
mkdir -p dist/linux_amd64 dist/linux_arm64
54-
cp dist/kefw2ui_linux_amd64_v*/kefw2ui dist/linux_amd64/kefw2ui
55-
cp dist/kefw2ui_linux_arm64_v*/kefw2ui dist/linux_arm64/kefw2ui
48+
docker:
49+
name: Docker
50+
runs-on: ubuntu-24.04
51+
needs: release
52+
steps:
53+
- name: Checkout
54+
uses: actions/checkout@v4
5655

5756
- name: Set up QEMU
5857
uses: docker/setup-qemu-action@v3
@@ -67,25 +66,25 @@ jobs:
6766
username: ${{ github.actor }}
6867
password: ${{ secrets.GITHUB_TOKEN }}
6968

70-
# - name: Docker meta
71-
# id: meta
72-
# uses: docker/metadata-action@v5
73-
# with:
74-
# images: ghcr.io/hilli/kefw2ui
75-
# tags: |
76-
# type=semver,pattern={{version}}
77-
# type=semver,pattern={{major}}.{{minor}}
78-
# type=raw,value=latest,enable={{is_default_branch}}
79-
# labels: |
80-
# org.opencontainers.image.title=kefw2ui
81-
# org.opencontainers.image.description=Web UI for controlling KEF W2 speakers
82-
# org.opencontainers.image.source=https://github.com/hilli/kefw2ui
69+
- name: Docker meta
70+
id: meta
71+
uses: docker/metadata-action@v5
72+
with:
73+
images: ghcr.io/hilli/kefw2ui
74+
tags: |
75+
type=semver,pattern={{version}}
76+
type=semver,pattern={{major}}.{{minor}}
77+
type=raw,value=latest,enable={{is_default_branch}}
78+
labels: |
79+
org.opencontainers.image.title=kefw2ui
80+
org.opencontainers.image.description=Web UI for controlling KEF W2 speakers
81+
org.opencontainers.image.source=https://github.com/hilli/kefw2ui
8382
8483
- name: Build and push Docker image
8584
uses: docker/build-push-action@v6
8685
with:
8786
context: .
88-
file: Dockerfile.goreleaser
87+
file: Dockerfile
8988
platforms: linux/amd64,linux/arm64
9089
push: true
9190
tags: ${{ steps.meta.outputs.tags }}

.goreleaser.yaml

Lines changed: 1 addition & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ builds:
2424
- amd64
2525
- arm64
2626
goarm:
27-
- 7
27+
- "7"
2828
mod_timestamp: "{{ .CommitTimestamp }}"
2929
flags:
3030
- -trimpath
@@ -101,26 +101,5 @@ nfpms:
101101
- statically-linked-binary
102102
- changelog-file-missing-in-native-package
103103

104-
dockers_v2:
105-
- images:
106-
- "ghcr.io/hilli/kefw2ui"
107-
id: kefw2ui
108-
dockerfile: Dockerfile.goreleaser
109-
platforms:
110-
- linux/amd64
111-
- linux/arm64
112-
tags:
113-
- "v{{.Version}}"
114-
- latest
115-
- "v{{.Major}}.{{.Minor}}"
116-
sbom: true
117-
labels:
118-
"org.opencontainers.image.description": "Web UI for controlling KEF W2 speakers"
119-
"org.opencontainers.image.created": "{{.Date}}"
120-
"org.opencontainers.image.name": "{{.ProjectName}}"
121-
"org.opencontainers.image.revision": "{{.FullCommit}}"
122-
"org.opencontainers.image.version": "{{.Version}}"
123-
"org.opencontainers.image.source": "{{.GitURL}}"
124-
125104
snapshot:
126105
version_template: "{{ incpatch .Version }}"

Dockerfile.goreleaser

Lines changed: 0 additions & 23 deletions
This file was deleted.

0 commit comments

Comments
 (0)