-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5849 from chanzuckerberg/staging
chore: Deploy to Prod
- Loading branch information
Showing
63 changed files
with
6,793 additions
and
2,118 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: "Lint PR commit" | ||
name: "Lint PR Title" | ||
|
||
on: | ||
pull_request_target: | ||
|
@@ -7,12 +7,13 @@ on: | |
- edited | ||
- synchronize | ||
|
||
permissions: | ||
pull-requests: read | ||
|
||
jobs: | ||
main: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: amannn/[email protected] | ||
with: | ||
validateSingleCommit: true | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
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 |
---|---|---|
|
@@ -24,14 +24,24 @@ permissions: | |
|
||
jobs: | ||
build-push-images: | ||
strategy: | ||
matrix: | ||
image: | ||
- frontend # pushed both the frontend and backend images | ||
- upload_failures | ||
- upload_success | ||
- dataset_submissions | ||
- processing | ||
- wmg_processing | ||
- cellguide_pipeline | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: Configure AWS Credentials | ||
uses: aws-actions/configure-aws-credentials@v2 | ||
with: | ||
aws-region: us-west-2 | ||
role-to-assume: ${{ secrets.AWS_ROLE_TO_ASSUME }} | ||
role-duration-seconds: 900 | ||
role-duration-seconds: 1800 | ||
- name: Login to ECR | ||
uses: docker/login-action@v1 | ||
with: | ||
|
@@ -42,13 +52,25 @@ jobs: | |
- name: Install happy | ||
uses: chanzuckerberg/github-actions/.github/actions/[email protected] | ||
with: | ||
happy_version: "0.59.0" | ||
- name: Build component | ||
shell: bash | ||
happy_version: "0.92.0" | ||
- name: Push images | ||
run: | | ||
happy push --aws-profile "" --tag sha-${GITHUB_SHA:0:7} | ||
echo "HAPPY_COMMIT=$(git rev-parse --verify HEAD)" >> envfile | ||
echo "HAPPY_BRANCH=$(git branch --show-current)" >> envfile | ||
export IMAGE_TAG=sha-${GITHUB_SHA:0:8} | ||
happy push devstack --env dev --slice ${{ matrix.image }} \ | ||
--docker-compose-env-file envfile --aws-profile "" \ | ||
--tags ${IMAGE_TAG},${STACK_NAME},branch-$(echo ${GITHUB_REF_NAME} | sed 's/[\+\/]/-/g') | ||
summarize: | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 1 | ||
- name: Create Summary With Happy Commands | ||
run: | | ||
export | ||
echo "### Happy Commands :rocket: :upside_down_face:" >> $GITHUB_STEP_SUMMARY | ||
echo "* \`happy create <_stack-name_> --tag ${GITHUB_SHA:0:7} --create-tag=false --skip-check-tag\`" >> $GITHUB_STEP_SUMMARY | ||
echo "* \`happy update <_stack-name_> --tag ${GITHUB_SHA:0:7} --create-tag=false --skip-check-tag\`" >> $GITHUB_STEP_SUMMARY | ||
echo "* \`happy create <_stack-name_> --tag ${GITHUB_SHA:0:8} --create-tag=false --skip-check-tag\`" >> $GITHUB_STEP_SUMMARY | ||
echo "* \`happy update <_stack-name_> --tag ${GITHUB_SHA:0:8} --create-tag=false --skip-check-tag\`" >> $GITHUB_STEP_SUMMARY |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: Delete rdev for PR | ||
|
||
on: | ||
pull_request: | ||
branches-ignore: | ||
- prod | ||
types: | ||
- closed | ||
|
||
env: | ||
# Force using BuildKit instead of normal Docker, required so that metadata | ||
# is written/read to allow us to use layers of previous builds as cache. | ||
DOCKER_BUILDKIT: 1 | ||
COMPOSE_DOCKER_CLI_BUILD: 1 | ||
DOCKER_REPO: ${{ secrets.ECR_REPO }}/ | ||
STACK_NAME: pr-${{ github.event.number }} | ||
|
||
permissions: | ||
id-token: write | ||
contents: read | ||
|
||
jobs: | ||
delete-rdev: | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: Configure AWS Credentials | ||
uses: aws-actions/configure-aws-credentials@v2 | ||
with: | ||
aws-region: us-west-2 | ||
role-to-assume: ${{ secrets.AWS_ROLE_TO_ASSUME }} | ||
role-duration-seconds: 900 | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 1 | ||
- name: Delete deployment | ||
uses: chanzuckerberg/github-actions/.github/actions/[email protected] | ||
with: | ||
tfe-token: ${{ secrets.TFE_TOKEN }} | ||
stack-name: ${{ env.STACK_NAME }} | ||
operation: delete | ||
happy_version: "0.92.0" |
Oops, something went wrong.