Skip to content

redeploy-int

redeploy-int #60

Workflow file for this run

# When the dev branch changes, auto-deploy code in the dev branch to the ECS integration server.
name: redeploy-int
on:
workflow_dispatch: # allow for manually running through Actions tab
push:
branches: [ dev ] # auto-run when dev branch changes
jobs:
build:
runs-on: ubuntu-latest
environment: integration
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
#- uses: actions/checkout@v3
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v2
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: ${{ secrets.AWS_REGION }}
- name: Login to Amazon ECR
id: login-ecr
uses: aws-actions/amazon-ecr-login@v1
- name: Force Deploy
env:
ECR_REPOSITORY: 'ld4p/qa_authority_lookup-int'
ECS_CLUSTER: 'lookup-int-deploy-cluster'
ECS_SERVICE: 'lookup-int-deploy-service'
run: aws ecs update-service --cluster $ECS_CLUSTER --service $ECS_SERVICE --force-new-deployment