Skip to content

Commit

Permalink
Try fix workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
hschne committed Oct 15, 2024
1 parent 50c7ee8 commit a3d20ba
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ jobs:
env:
DOCKER_BUILDKIT: 1
RAILS_ENV: production
RAILS_MASTER_KEY: ${{ secrets.RAILS_MASTER_KEY }}
KAMAL_REGISTRY_PASSWORD: ${{ secrets.DOCKER_REGISTRY_KEY }}

steps:
Expand All @@ -45,5 +44,8 @@ jobs:
with:
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}

- name: Set Rails Master Key
run: echo ${{ secrets.RAILS_MASTER_KEY}} >> config/credentials/production.key

- name: Deploy command
run: bundle exec dotenv kamal deploy
run: bundle exec kamal deploy
2 changes: 1 addition & 1 deletion .kamal/secrets
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
KAMAL_REGISTRY_PASSWORD=$KAMAL_REGISTRY_PASSWORD
RAILS_MASTER_KEY=$(cat config/master.key)
RAILS_MASTER_KEY=$(cat config/credentials/production.key)

0 comments on commit a3d20ba

Please sign in to comment.