Skip to content

Commit

Permalink
update: artifact download 경로 수정
Browse files Browse the repository at this point in the history
- build/libs/*.jar -> build/libs
  • Loading branch information
Yoojin-An committed Oct 1, 2023
1 parent 87d898a commit 3dc6044
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions .github/workflows/prod-cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,7 @@ jobs:

- name: Build with Gradle
id: build
run: |
./gradlew clean build -x test
sudo find . -name katj-0.0.1-SNAPSHOT.jar
ls build/libs
#
# - name: Copy Jar file
# run: mv build/libs/${ls build/libs) app.jar
run: ./gradlew clean build -x test

- name: Upload Jar file
uses: actions/upload-artifact@v3
Expand Down Expand Up @@ -89,9 +83,7 @@ jobs:
uses: actions/download-artifact@v3
with:
name: jar-file
path: build/libs/*.jar
# - name: Set artifact
# run: echo "artifact=$(ls ./build/libs)" >> $GITHUB_ENV
path: build/libs/

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

0 comments on commit 3dc6044

Please sign in to comment.