Avoid showing EditPersonTicketWorkbench if the ticket is closed #1103
Workflow file for this run
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
name: Deploy Main to Staging From Tagged PRs | |
on: | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build: | |
if: contains(github.event.pull_request.labels.*.name, 'deploy-staging') | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: Configure AWS credentials | |
uses: aws-actions/configure-aws-credentials@v4 | |
with: | |
aws-access-key-id: ${{ secrets.CI_CD_AWS_ACCESS_KEY_ID }} | |
aws-secret-access-key: ${{ secrets.CI_CD_AWS_SECRET_ACCESS_KEY }} | |
aws-region: ${{ secrets.AWS_DEFAULT_REGION }} | |
- name: Login to Amazon ECR | |
id: login-ecr | |
uses: aws-actions/amazon-ecr-login@v2 | |
- name: Get the SHA of the current branch/fork | |
shell: bash | |
run: | | |
echo "SHORT_SHA=$(git rev-parse --short HEAD)" >> "$GITHUB_ENV" | |
- name: Build staging images | |
uses: ./.github/actions/build-environment | |
with: | |
environment: staging | |
build_tag: ${{ env.SHORT_SHA }} | |
registry: ${{ steps.login-ecr.outputs.registry }}/wca-on-rails | |
- name: Deploy staging | |
run: | | |
aws ecs update-service --cluster wca-on-rails --service wca-on-rails-staging --force-new-deployment | |
aws ecs update-service --cluster wca-on-rails --service wca-on-rails-staging-sqs-worker --force-new-deployment | |
aws ecs update-service --cluster wca-on-rails --service wca-on-rails-staging-API --force-new-deployment | |
aws ecs update-service --cluster wca-on-rails --service wca-on-rails-staging-auxiliary-services --force-new-deployment |