From d7087506bdf422bffb93c1d4e3c09fc2866229c6 Mon Sep 17 00:00:00 2001 From: Matthias Naber Date: Wed, 9 Aug 2023 10:43:36 +0200 Subject: [PATCH] fixed Makefile/upload task --- .github/workflows/pr.yml | 0 Makefile | 8 ++++---- 2 files changed, 4 insertions(+), 4 deletions(-) delete mode 100644 .github/workflows/pr.yml diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml deleted file mode 100644 index e69de29bb..000000000 diff --git a/Makefile b/Makefile index 6a82c0183..d2f1e8fff 100644 --- a/Makefile +++ b/Makefile @@ -43,13 +43,13 @@ invoke :: # invoke the running docker lambda by posting a sample API-GW-Event @echo nothing to do -upload :: build # build and push the app to production (given sufficient permissions) - if [ $(SERVICE) == 'image-handler' ]; then \ +upload :: # upload/push the app to production (given sufficient permissions) + if [ "image-handler" == "$(SERVICE)" ]; then \ aws s3 cp $(WORK_DIR)/dist/image-handler.zip s3://ci-$(ACCOUNT_ID)-$(REGION)/image-handler/image-handler$(APP_SUFFIX).zip ; \ - elif [ $(SERVICE) == 'thumbs' ]; then \ + elif [ "thumbs" == "$(SERVICE)" ]; then \ aws s3 cp $(WORK_DIR)/target/lambda/arm64/thumbs/bootstrap.zip s3://ci-$(ACCOUNT_ID)-$(REGION)/image-thumbs/image-thumbs$(APP_SUFFIX).zip ; \ else \ - echo 'Unknown SERVICE/Upload: $(SERVICE). Aborting.' ; exit 1 ; \ + echo "Unknown SERVICE/Upload: $(SERVICE). Aborting." ; exit 1 ; \ fi all :: build tf