Skip to content

Commit ef2ebff

Browse files
committed
fix: use GH_PAT for GHCR push on forked repo
GITHUB_TOKEN lacks packages:write on forks. Use org-level GH_PAT secret instead. Also trigger on master branch (the actual default).
1 parent 606d68e commit ef2ebff

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/deploy.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Build and Deploy Hanzo SQL
22

33
on:
44
push:
5-
branches: [main]
5+
branches: [main, master]
66
tags: ['v*']
77
paths:
88
- 'Dockerfile'
@@ -64,7 +64,7 @@ jobs:
6464
with:
6565
registry: ghcr.io
6666
username: ${{ github.actor }}
67-
password: ${{ secrets.GITHUB_TOKEN }}
67+
password: ${{ secrets.GH_PAT }}
6868

6969
- name: Log in to Docker Hub
7070
uses: docker/login-action@v3
@@ -103,7 +103,7 @@ jobs:
103103

104104
deploy-hanzo:
105105
needs: build
106-
if: github.ref == 'refs/heads/main'
106+
if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master'
107107
runs-on: ubuntu-latest
108108
steps:
109109
- name: Fetch deploy secrets from Hanzo KMS

0 commit comments

Comments
 (0)