Skip to content

Commit

Permalink
more CI_BRANCH replacements
Browse files Browse the repository at this point in the history
  • Loading branch information
briskt committed Feb 26, 2024
1 parent 2f61609 commit 1f98c21
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test-and-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Test
- name: Deploy
run: docker-compose -f actions-services.yml run --rm app ./scripts/deploy.sh

build-and-publish:
Expand Down
4 changes: 2 additions & 2 deletions scripts/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ then
export LAMBDA_ROLE="${STG_LAMBDA_ROLE}"
export API_KEY_TABLE="${STG_API_KEY_TABLE}"
export WEBAUTHN_TABLE="${STG_WEBAUTHN_TABLE}"
elif [ "${CI_BRANCH}" == "main" ];
elif [ "${GITHUB_REF}" == "main" ];
then
STAGE="production"
export AWS_ACCESS_KEY_ID="${PRD_AWS_ACCESS_KEY_ID}"
Expand All @@ -32,7 +32,7 @@ then
export API_KEY_TABLE="${PRD_API_KEY_TABLE}"
export WEBAUTHN_TABLE="${PRD_WEBAUTHN_TABLE}"
else
echo "deployments only happen from develop and main branches (branch: ${CI_BRANCH})"
echo "deployments only happen from develop and main branches (branch: ${GITHUB_REF})"
exit
fi

Expand Down

0 comments on commit 1f98c21

Please sign in to comment.