From 3dc6044c552e3b093297ca193db03f0ab9265689 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=95=88=EC=9C=A0=EC=A7=84?= Date: Sun, 1 Oct 2023 13:10:50 +0900 Subject: [PATCH] =?UTF-8?q?update:=20artifact=20download=20=EA=B2=BD?= =?UTF-8?q?=EB=A1=9C=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - build/libs/*.jar -> build/libs --- .github/workflows/prod-cicd.yml | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/.github/workflows/prod-cicd.yml b/.github/workflows/prod-cicd.yml index 8a9bb38a..7056548d 100644 --- a/.github/workflows/prod-cicd.yml +++ b/.github/workflows/prod-cicd.yml @@ -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 @@ -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 @@ -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