Skip to content

Commit a6acb64

Browse files
authored
Update release workflow to publish to a forked docker repo (#5)
* modularize frontend repo and bump node version * add param for forntend ref
1 parent 9d4bf46 commit a6acb64

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

.github/workflows/go-release.yml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,15 @@ jobs:
1717
- name: Checkout Frontend
1818
uses: actions/checkout@v4
1919
with:
20-
repository: 'donetick/frontend'
20+
repository: '${{ vars.FRONTEND_REPO }}'
21+
ref: ${{ vars.FRONTEND_REF }}
2122
token: ${{ secrets.GITHUB_TOKEN }}
2223
path: 'frontend-code'
2324
# build frontend
2425
- name: Install Node.js
2526
uses: actions/setup-node@v2
2627
with:
27-
node-version: '16'
28+
node-version: '20'
2829
- name: Install Dependencies
2930
run: |
3031
cd frontend-code
@@ -49,15 +50,11 @@ jobs:
4950
- name: Run GoReleaser
5051
uses: goreleaser/goreleaser-action@v6
5152
with:
52-
# either 'goreleaser' (default) or 'goreleaser-pro'
5353
distribution: goreleaser
54-
# 'latest', 'nightly', or a semver
5554
version: latest
5655
args: release --clean --skip=validate
5756
env:
5857
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
59-
# Your GoReleaser Pro key, if you are using the 'goreleaser-pro' distribution
60-
# GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }}
6158

6259
# Log in to Docker Hub
6360
- name: Log in to Docker Hub
@@ -74,4 +71,4 @@ jobs:
7471
# Push Docker image
7572
- name: Push Docker image
7673
run: |
77-
docker push ${{ secrets.DOCKER_USERNAME }}/donetick:latest
74+
docker push ${{ secrets.DOCKER_USERNAME }}/donetick:latest

0 commit comments

Comments
 (0)