diff --git a/.github/workflows/prod-cicd.yml b/.github/workflows/prod-cicd.yml index dfb31866..a330d8f7 100644 --- a/.github/workflows/prod-cicd.yml +++ b/.github/workflows/prod-cicd.yml @@ -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: @@ -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