diff --git a/.github/workflows/deploy-dev.yml b/.github/workflows/deploy-dev.yml index 40680c97..86589a75 100644 --- a/.github/workflows/deploy-dev.yml +++ b/.github/workflows/deploy-dev.yml @@ -36,7 +36,8 @@ jobs: - name: Create FireBase JSON file From AWS run: | - aws s3 cp --region ap-northeast-2 s3://${{ secrets.AWS_BUCKET_NAME }}/json/smeem_fcm.json smeem-notification/src/main/resources/firebase-config/smeem_fcm.json + echo "FCM_JSON_PATH=smeem-notification/src/main/resources/firebase-config/smeem_fcm_dev.json" >> $GITHUB_ENV + aws s3 cp --region ap-northeast-2 ${{ secrets.AWS_S3_FCM_JSON_URI_DEV }} $FCM_JSON_PATH - name: Build with Gradle run: | diff --git a/script/deploy.sh b/script/deploy.sh index 12b06fb7..423da7b0 100644 --- a/script/deploy.sh +++ b/script/deploy.sh @@ -17,7 +17,7 @@ if [ "$(docker ps -a -q -f name=${CONTAINER_NAME})" ]; then fi echo "> Run docker" -sudo docker run -d --name ${CONTAINER_NAME} -p 80:8080 "${REGISTRY_URL}"/${IMAGE_NAME}:${TAG} +sudo docker run -d --name ${CONTAINER_NAME} -p 80:8080 "${REGISTRY_URL}"/"${IMAGE_NAME}":${TAG} echo "----------------------------------------------------------------------"