Merge branch 'release/0.18.0' #31
This file contains hidden or 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: Aeum-gil API Docker Build | |
| on: | |
| push: | |
| branches: [master] | |
| jobs: | |
| aeum-gil-api-deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Source Code Checkout | |
| uses: actions/checkout@master | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@master | |
| - name: Login to GitHub Container Registry | |
| uses: docker/login-action@master | |
| with: | |
| registry: ghcr.io | |
| username: ${{ github.repository_owner }} | |
| password: ${{ secrets.GHCR_PAT }} | |
| - name: Build and Push | |
| uses: docker/build-push-action@master | |
| with: | |
| context: . | |
| file: ./build/Dockerfile | |
| push: true | |
| tags: ghcr.io/${{ github.repository_owner }}/aeum-gil-api:prod | |
| - name: Configure AWS Credentials | |
| uses: aws-actions/configure-aws-credentials@master | |
| with: | |
| aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY }} | |
| aws-secret-access-key: ${{ secrets.AWS_SECRET }} | |
| aws-region: ap-northeast-2 | |
| - name: Force update ECS Service | |
| run: | | |
| aws ecs update-service --cluster aeum-gil-api --service aeum-gil-api-service --force-new-deployment |