-
Notifications
You must be signed in to change notification settings - Fork 288
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
Showing
38 changed files
with
271 additions
and
694 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: "Deploy environment" | ||
description: "Trigger deployment of the specified environment" | ||
|
||
inputs: | ||
environment-name: | ||
required: true | ||
default: "production" | ||
artifacts-s3-bucket: | ||
required: true | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
fetch-tags: 'true' | ||
|
||
- name: Set VERSION in environment | ||
shell: bash | ||
run: | | ||
app_version=$(git describe --tags --first-parent --abbrev=11 --long --dirty --always) | ||
echo "VERSION=${app_version}" >> .env | ||
- name: Zip artifact | ||
shell: bash | ||
run: | | ||
artifact_name="${{ inputs.environment-name }}-entrypoint.zip" | ||
zip -r -q $artifact_name . | ||
- name: Send artifact to S3 | ||
shell: bash | ||
run: | | ||
artifact_name="${{ inputs.environment-name }}-entrypoint" | ||
aws s3 cp "${artifact_name}.zip" "s3://${{ inputs.artifacts-s3-bucket }}/${artifact_name}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name: "Deploy to production" | ||
|
||
concurrency: Production | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
deployment: | ||
runs-on: ubuntu-latest | ||
environment: Production | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
fetch-tags: 'true' | ||
|
||
- uses: ./.github/workflows/actions/deploy | ||
with: | ||
environment-name: 'saas-prod' | ||
artifacts-s3-bucket: '${{ secrets.SB_CI_ARTIFACTS_BUCKET }}' | ||
env: | ||
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | ||
AWS_DEFAULT_REGION: ${{ secrets.AWS_DEFAULT_REGION }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name: "Deploy to QA" | ||
|
||
concurrency: QA | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
deployment: | ||
runs-on: ubuntu-latest | ||
environment: QA | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
fetch-tags: 'true' | ||
|
||
- uses: ./.github/workflows/actions/deploy | ||
with: | ||
environment-name: 'saas-qa' | ||
artifacts-s3-bucket: '${{ secrets.SB_CI_ARTIFACTS_BUCKET }}' | ||
env: | ||
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | ||
AWS_DEFAULT_REGION: ${{ secrets.AWS_DEFAULT_REGION }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
40 changes: 0 additions & 40 deletions
40
packages/infra/infra-functions/deployment/triggerEntrypoint.ts
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
19 changes: 0 additions & 19 deletions
19
packages/infra/infra-functions/infra-functions.conf.local.yml
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.