Skip to content

Commit 4296813

Browse files
committed
Add Registry Creds
1 parent acbf67b commit 4296813

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/release.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ env:
1818
KAMAL_DEPLOY_IP: ${{ secrets.KAMAL_DEPLOY_IP }}
1919
KAMAL_DEPLOY_HOST: ${{ secrets.KAMAL_DEPLOY_HOST }}
2020
POSTGRES_PASSWORD: ${{ secrets.POSTGRES_PASSWORD }}
21+
KAMAL_REGISTRY_USERNAME: ${{ github.actor }}
22+
KAMAL_REGISTRY_PASSWORD: ${{ secrets.GITHUB_TOKEN }}
2123

2224
jobs:
2325
release:

config/deploy.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,11 @@ registry:
4545
# Specify the registry server, if you're not using Docker Hub
4646
server: ghcr.io
4747
username:
48-
- <%= ENV['GITHUB_ACTOR'] %>
48+
- KAMAL_REGISTRY_USERNAME
4949

5050
# Always use an access token rather than real password (pulled from .kamal/secrets).
5151
password:
52-
- <%= ENV['GITHUB_TOKEN'] %>
52+
- KAMAL_REGISTRY_PASSWORD
5353

5454
# Configure builder setup.
5555
builder:

0 commit comments

Comments
 (0)