Skip to content

🩹 fix title (#359) #109

🩹 fix title (#359)

🩹 fix title (#359) #109

Workflow file for this run

name: deploy-prod
on:
push:
tags:
- prod/*
jobs:
deploy:
name: Deploy
runs-on: ubuntu-latest
env:
IMAGE_TAG: ${{ github.run_number }}
BUILD_NUMBER: ${{ github.run_number }}
ECR_REGISTRY: 405906814034.dkr.ecr.ap-northeast-2.amazonaws.com
ECR_REPOSITORY: snutt-prod/snutt-ev-web
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
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 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 -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG \
--build-arg APP_ENV=prod \
--build-arg GIT_SHA=$(git rev-parse HEAD) \
--build-arg GIT_TAG=$(git describe --tags) \
--build-arg TRUFFLE_APIKEY=${{ secrets.TRUFFLE_APIKEY }} \
.
docker push $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG
echo "::set-output name=image::$ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG"
notify:
needs: deploy
uses: wafflestudio/snutt-internal/.github/workflows/dispatch-github-release-deploy-notifier.yml@main
with:
title: '강의평-웹뷰'
secrets:
PAT: ${{ secrets.GHP_ACCESS_TOKEN }}