Commit b2fe741b authored by Neil Spink's avatar Neil Spink

trying new docker image and fixing source.zip for deploy

parent 673506d2
Pipeline #52470247 failed with stages
in 7 seconds
......@@ -9,7 +9,7 @@ stages:
- deploy
build:
image: python:3.6
image: 3.7.2-alpine3.9
stage: build
script:
- echo "Building"
......@@ -19,7 +19,7 @@ build:
- source/
test:
image: python:3.6
image: 3.7.2-alpine3.9
stage: test
script:
- echo "Testing"
......@@ -28,13 +28,13 @@ test:
- nose2 -v
deploy:
image: python:latest
image: 3.7.2-alpine3.9
stage: deploy
script:
- curl --header "JOB-TOKEN':' $CI_JOB_TOKEN" -o artifacts.zip https://gitlab.com/neilspink/aws-lambda-price-grabber/-/jobs/$CI_JOB_NAME/artifacts/download?job=$CI_JOB_NAME
- 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
- ls
- pip3 install awscli
- aws s3 cp source/source.zip s3://$S3_BUCKET/
- aws s3 cp 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