Skip to content

Commit

Permalink
Include docker image links in release notes
Browse files Browse the repository at this point in the history
  • Loading branch information
mxpv committed May 5, 2023
1 parent 947ac53 commit dd551d9
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 9 deletions.
22 changes: 13 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ on:
tags:
- 'v*'

env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}

jobs:
publish:
name: Publish
Expand All @@ -21,15 +25,6 @@ jobs:
with:
fetch-depth: 0

- name: 🚧️ Make release
uses: goreleaser/goreleaser-action@v4
if: startsWith(github.ref, 'refs/tags/')
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
version: latest
args: release --clean

- name: 🧪 Set up Docker Buildx
uses: docker/setup-buildx-action@v2

Expand All @@ -51,3 +46,12 @@ jobs:
platforms: linux/amd64,linux/arm64
push: true
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest, ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:v${{ github.ref_name }}

- name: 🚧️ Make release
uses: goreleaser/goreleaser-action@v4
if: startsWith(github.ref, 'refs/tags/')
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
version: latest
args: release --clean
8 changes: 8 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,11 @@ changelog:
- '^test:'
- Merge pull request
- Merge branch

release:
# We publish Docker image manually,
# include links to the release notes.
footer: |
# Docker images
docker pull ghcr.io/mxpv/podsync:{{ .Tag }}
docker pull ghcr.io/mxpv/podsync:latest

0 comments on commit dd551d9

Please sign in to comment.