Skip to content

Commit

Permalink
Pass secret earlier
Browse files Browse the repository at this point in the history
  • Loading branch information
erictheise committed Dec 27, 2024
1 parent a164cc9 commit b94c0bf
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/chartpress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ jobs:
run: chartpress --push
env:
GITHUB_TOKEN: ${{ secrets.GHCR_GITHUB_TOKEN }}
################ Development secrets ################
RAILS_MASTER_KEY: ${{ secrets.RAILS_MASTER_KEY }}
################ Development secrets ################
- name: Staging - substitute secrets
if: github.ref == 'refs/heads/development'
uses: bluwy/substitute-string-action@v1
Expand All @@ -41,7 +42,6 @@ jobs:
_output-file: 'values.development.yaml'
AWS_SSL_ARN: ${{ secrets.AWS_SSL_ARN }}
## web
RAILS_MASTER_KEY: ${{ secrets.RAILS_MASTER_KEY }}
MAILER_ADDRESS: ${{ secrets.MAILER_ADDRESS }}
MAILER_DOMAIN: ${{ secrets.MAILER_DOMAIN }}
MAILER_PASSWORD: ${{ secrets.STAGING_MAILER_PASSWORD }}
Expand Down Expand Up @@ -87,7 +87,6 @@ jobs:
_output-file: 'values.staging.yaml'
AWS_SSL_ARN: ${{ secrets.AWS_SSL_ARN }}
## web
RAILS_MASTER_KEY: ${{ secrets.RAILS_MASTER_KEY }}
MAILER_ADDRESS: ${{ secrets.MAILER_ADDRESS }}
MAILER_DOMAIN: ${{ secrets.MAILER_DOMAIN }}
MAILER_PASSWORD: ${{ secrets.STAGING_MAILER_PASSWORD }}
Expand Down Expand Up @@ -135,7 +134,6 @@ jobs:
_output-file: 'values.production.yaml'
AWS_SSL_ARN: ${{ secrets.AWS_SSL_ARN }}
## web
RAILS_MASTER_KEY: ${{ secrets.RAILS_MASTER_KEY }}
MAILER_ADDRESS: ${{ secrets.MAILER_ADDRESS }}
MAILER_DOMAIN: ${{ secrets.MAILER_DOMAIN }}
MAILER_PASSWORD: ${{ secrets.MAILER_PASSWORD }}
Expand Down

0 comments on commit b94c0bf

Please sign in to comment.