Skip to content

Commit

Permalink
feat: Update env
Browse files Browse the repository at this point in the history
  • Loading branch information
devmizz committed Aug 13, 2024
1 parent 364afeb commit 461ae57
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions .github/workflows/showpot-prod-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,6 @@ on:
- prod
- feat/prod-cd

env:
AWS_REGION: ap-northeast-2
ECR_REPOSITORY: showpot-application

jobs:
build-and-deploy:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -50,7 +46,7 @@ jobs:
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: ${{ env.AWS_REGION }}
aws-region: ap-northeast-2

- name: Login to Amazon ECR
id: login-ecr
Expand All @@ -70,5 +66,4 @@ jobs:
IMAGE_TAG: ${{ env.IMAGE_TAG }}
run: |
docker build -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG .
docker push $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG
echo "image=$ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG" >> $GITHUB_OUTPUT
docker push $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG

0 comments on commit 461ae57

Please sign in to comment.