chore: update base image to eclipse-temurin:17-jdk-alpine for Dockerf… #13
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: Deploy | |
| on: | |
| push: | |
| branches: [ master ] | |
| jobs: | |
| deploy: | |
| name: Deploy | |
| runs-on: ubuntu-24.04-arm | |
| env: | |
| IMAGE_TAG: ${{ github.run_number }} | |
| BUILD_NUMBER: ${{ github.run_number }} | |
| ECR_REGISTRY: 405906814034.dkr.ecr.ap-northeast-2.amazonaws.com | |
| ECR_CONSUMER_REPOSITORY: truffle-prod/truffle-consumer | |
| ECR_DASHBOARD_REPOSITORY: truffle-prod/truffle-dashboard | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v2 | |
| - 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: ap-northeast-2 | |
| - name: Login to ECR | |
| id: login-ecr | |
| uses: aws-actions/amazon-ecr-login@v1 | |
| - name: Docker Build, tag, and push image to ECR | |
| id: build-image | |
| run: | | |
| docker build -f Dockerfile-consumer -t $ECR_REGISTRY/$ECR_CONSUMER_REPOSITORY:$IMAGE_TAG . | |
| docker build -f Dockerfile-dashboard -t $ECR_REGISTRY/$ECR_DASHBOARD_REPOSITORY:$IMAGE_TAG . | |
| docker push $ECR_REGISTRY/$ECR_CONSUMER_REPOSITORY:$IMAGE_TAG | |
| docker push $ECR_REGISTRY/$ECR_DASHBOARD_REPOSITORY:$IMAGE_TAG | |
| - name: Slack Notify | |
| uses: rtCamp/action-slack-notify@v2.1.2 | |
| env: | |
| SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} | |
| SLACK_CHANNEL: project-truffle | |
| SLACK_TITLE: NEW RELEASE | |
| SLACK_USERNAME: truffle | |
| SLACK_ICON: https://user-images.githubusercontent.com/35535636/103177470-2237cb00-48be-11eb-9211-3ffa567c8ac3.png | |
| SLACK_MESSAGE: Check <https://argocd.wafflestudio.com|Argo CD> for updated environment |