make confirmation progress bar nicer #28
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: Crepe CD | |
on: | |
push: | |
branches: | |
- crepe | |
tags: | |
- "v*.*.*" | |
jobs: | |
crepe-api-deploy: | |
if: github.ref == 'refs/heads/crepe' | |
name: Crepe Deploy | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Configure AWS credentials | |
uses: aws-actions/configure-aws-credentials@v4 | |
with: | |
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
aws-region: ${{ secrets.AWS_REGION }} | |
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
mask-aws-account-id: true | |
- id: login-ecr | |
name: Login to Amazon ECR | |
uses: aws-actions/amazon-ecr-login@v2 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: Build, tag, and push docker image to Amazon ECR | |
uses: docker/build-push-action@v5 | |
with: | |
cache-from: type=gha | |
cache-to: type=gha | |
context: . | |
file: ./packages/crepe-api/Dockerfile | |
platforms: linux/arm64 | |
push: true | |
tags: | | |
${{ steps.login-ecr.outputs.registry }}/${{ vars.AWS_ECR_CREPE_API_REPO }}:${{ github.sha }} | |
${{ steps.login-ecr.outputs.registry }}/${{ vars.AWS_ECR_CREPE_API_REPO }}:prod | |
- name: Update ECS Crepe API Service | |
run: aws ecs update-service --cluster ${{ vars.AWS_ECS_CREPE_API_CLUSTER_PROD }} --service ${{ vars.AWS_ECS_CREPE_API_SERVICE_PROD }} --force-new-deployment |