Commit d30e1ee1 authored by Neil Spink's avatar Neil Spink

reintroduce package because artefact has folder

parent caa498cb
Pipeline #52471692 failed with stages
in 4 minutes and 41 seconds
......@@ -27,13 +27,21 @@ test:
- cp -R source/* .
- nose2 -v
package:
image: python:3.7.2-stretch
stage: package
script:
- apt-get update
- apt-get -y install zip unzip
- cd source
- zip -r source.zip *
deploy:
image: python:3.7.2-stretch
stage: deploy
script:
- curl --header "JOB-TOKEN':' $CI_JOB_TOKEN" -o source.zip https://gitlab.com/neilspink/aws-lambda-price-grabber/-/jobs/$CI_JOB_NAME/artifacts/download?job=$CI_JOB_NAME
- pip3 install awscli
- aws s3 cp source.zip s3://$S3_BUCKET/
- aws s3 cp source/source.zip s3://$S3_BUCKET/
- aws s3 cp source/website-monitor-list.yml s3://$S3_BUCKET/
- aws cloudformation package --template-file ./deployment/aws-create-lambda.json --s3-bucket $S3_BUCKET --output-template template-export.yml
- aws cloudformation deploy --template-file template-export.yml --stack-name aws-lambda-price-grabber-stack --capabilities CAPABILITY_IAM --no-fail-on-empty-changeset
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment