Skip to content

Commit

Permalink
fixed Makefile/upload task
Browse files Browse the repository at this point in the history
  • Loading branch information
thisismana committed Aug 9, 2023
1 parent f109c47 commit d708750
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Empty file removed .github/workflows/pr.yml
Empty file.
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit d708750

Please sign in to comment.