Skip to content

Commit

Permalink
update: artifact 지정
Browse files Browse the repository at this point in the history
  • Loading branch information
Yoojin-An committed Oct 1, 2023
1 parent 19b4648 commit 1b3e109
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/prod-cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ jobs:
id: login-ecr
uses: aws-actions/amazon-ecr-login@v1

- name: Set artifact
run: echo "artifact=$(ls ./build/libs)" >> $GITHUB_ENV

- name: Build, tag, and push image to Amazon ECR
id: build-image
env:
Expand All @@ -82,10 +85,7 @@ jobs:
# Build a docker container and
# push it to ECR so that it can
# be deployed to ECS.
ls -al
pwd
docker build -f Dockerfile -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG .
sudo find . -name "katj-0.0.1-SNAPSHOT.jar"
docker push $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG
echo "image=$ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG" >> $GITHUB_OUTPUT
Expand Down

0 comments on commit 1b3e109

Please sign in to comment.