forked from mastodon/mastodon
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
strip out old GHA workflows; add CICD foundation
- Loading branch information
1 parent
3002845
commit a238df0
Showing
29 changed files
with
410 additions
and
1,533 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,56 @@ | ||
name: AWS Build and Deploy | ||
|
||
on: | ||
push: | ||
branches: ["staging", "production"] | ||
|
||
jobs: | ||
build-and-push: | ||
permissions: | ||
id-token: write | ||
contents: read | ||
checks: write | ||
name: build-and-push | ||
concurrency: ${{ github.ref }} | ||
uses: ./.github/workflows/ecr.yml | ||
with: | ||
build_role: arn:aws:iam::458591407913:role/github-actions-ecr-thoughtbot-mastodon | ||
ecr_repo: thoughtbot/thoughtbot-mastodon | ||
|
||
deploy-staging: | ||
if: ${{ endsWith(github.ref, 'staging') }} | ||
permissions: | ||
contents: read | ||
id-token: write | ||
actions: read | ||
name: deploy-staging | ||
needs: build-and-push | ||
concurrency: ${{ github.ref }} | ||
uses: ./.github/workflows/eks.yml | ||
with: | ||
cluster_name: thoughtbot-sandbox-v1 | ||
deploy_role: arn:aws:iam::181682000713:role/thoughtbot-mastodon-deploy | ||
image_url: ${{ needs.build-and-push.outputs.image_url }} | ||
manifest_path: ./deploy/staging | ||
namespace: thoughtbot-mastodon-staging | ||
registry_account: '458591407913' | ||
version: ${{ needs.build-and-push.outputs.version }} | ||
|
||
deploy-production: | ||
if: ${{ endsWith(github.ref, 'production') }} | ||
permissions: | ||
contents: read | ||
id-token: write | ||
actions: read | ||
name: deploy-production | ||
needs: build-and-push | ||
concurrency: ${{ github.ref }} | ||
uses: ./.github/workflows/eks.yml | ||
with: | ||
cluster_name: thoughtbot-production-v1 | ||
deploy_role: arn:aws:iam::651913466569:role/thoughtbot-mastodon-deploy | ||
image_url: ${{ needs.build-and-push.outputs.image_url }} | ||
manifest_path: ./deploy/production | ||
namespace: thoughtbot-mastodon-production | ||
registry_account: '458591407913' | ||
version: ${{ needs.build-and-push.outputs.version }} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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.