Skip to content

Commit

Permalink
Merge branch 'feature/staging-prod-default-envs' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastian-quintero committed Sep 12, 2024
2 parents a2dce74 + eb5213f commit 107ff3e
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,24 @@ permissions:
packages: read

jobs:
determine_environments:
runs-on: ubuntu-latest
outputs:
environments: ${{ steps.set-environments.outputs.environments }}
steps:
- name: Set environments
id: set-environments
run: |
if [ "${{ inputs.TARGET_ENVIRONMENT }}" != "" ]; then
echo "environments=${{ inputs.TARGET_ENVIRONMENT }}" >> $GITHUB_OUTPUT
exit 0
echo "environments=staging,prod" >> $GITHUB_OUTPUT
update_apps:
runs-on: ubuntu-latest
environment: ${{ inputs.TARGET_ENVIRONMENT || 'staging' }} # TODO: Change to prod once nicely tested.
needs: determine_environments
strategy:
matrix:
environment: ${{fromJson(needs.determine_environments.outputs.environments)}}
env:
BUCKET: ${{ secrets.S3_BUCKET }}
FOLDER: ${{ secrets.S3_FOLDER }}
Expand Down

0 comments on commit 107ff3e

Please sign in to comment.