Skip to content

Commit dd551d9

Browse files
committed
Include docker image links in release notes
1 parent 947ac53 commit dd551d9

File tree

2 files changed

+21
-9
lines changed

2 files changed

+21
-9
lines changed

.github/workflows/release.yml

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ on:
55
tags:
66
- 'v*'
77

8+
env:
9+
REGISTRY: ghcr.io
10+
IMAGE_NAME: ${{ github.repository }}
11+
812
jobs:
913
publish:
1014
name: Publish
@@ -21,15 +25,6 @@ jobs:
2125
with:
2226
fetch-depth: 0
2327

24-
- name: 🚧️ Make release
25-
uses: goreleaser/goreleaser-action@v4
26-
if: startsWith(github.ref, 'refs/tags/')
27-
env:
28-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
29-
with:
30-
version: latest
31-
args: release --clean
32-
3328
- name: 🧪 Set up Docker Buildx
3429
uses: docker/setup-buildx-action@v2
3530

@@ -51,3 +46,12 @@ jobs:
5146
platforms: linux/amd64,linux/arm64
5247
push: true
5348
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest, ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:v${{ github.ref_name }}
49+
50+
- name: 🚧️ Make release
51+
uses: goreleaser/goreleaser-action@v4
52+
if: startsWith(github.ref, 'refs/tags/')
53+
env:
54+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
55+
with:
56+
version: latest
57+
args: release --clean

.goreleaser.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,11 @@ changelog:
4444
- '^test:'
4545
- Merge pull request
4646
- Merge branch
47+
48+
release:
49+
# We publish Docker image manually,
50+
# include links to the release notes.
51+
footer: |
52+
# Docker images
53+
docker pull ghcr.io/mxpv/podsync:{{ .Tag }}
54+
docker pull ghcr.io/mxpv/podsync:latest

0 commit comments

Comments
 (0)