Skip to content

Commit e853f1b

Browse files
committed
ci(release): set up docker buildx and ghcr login, update goreleaser version and migration file pattern
1 parent 8fd23dc commit e853f1b

2 files changed

Lines changed: 12 additions & 2 deletions

File tree

.github/workflows/release.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,22 @@ jobs:
4949
with:
5050
go-version-file: backend/go.mod
5151
cache: true
52+
53+
- name: Set up Docker Buildx
54+
uses: docker/setup-buildx-action@v3
55+
56+
- name: Login to GitHub Container Registry
57+
uses: docker/login-action@v3
58+
with:
59+
registry: ghcr.io
60+
username: ${{ github.actor }}
61+
password: ${{ secrets.GITHUB_TOKEN }}
5262

5363
- name: Run GoReleaser
5464
uses: goreleaser/goreleaser-action@v6
5565
with:
5666
distribution: goreleaser
57-
version: latest
67+
version: "~> v2"
5868
args: release --clean
5969
env:
6070
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.goreleaser.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ archives:
8484
formats: [zip]
8585
files:
8686
- README.md
87-
- backend/migrations/**/*.sql
87+
- backend/migrations/*.sql
8888

8989
checksum:
9090
name_template: >-

0 commit comments

Comments
 (0)