Commit 3457e09a authored by Neil Spink's avatar Neil Spink

remove unnecessary packaging stage and use build artefact for deploy

parent 534d33f7
Pipeline #52469657 failed with stages
in 3 minutes and 45 seconds
......@@ -28,22 +28,11 @@ test:
- cp -R source/* .
- nose2 -v
package:
image: buildpack-deps
stage: package
script:
- apt-get update
- apt-get -y install zip unzip
- cd source
- zip -r source.zip *
artifacts:
paths:
- ./
deploy:
image: python:latest
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
- pip3 install awscli
- aws s3 cp source/source.zip s3://$S3_BUCKET/
- aws s3 cp source/website-monitor-list.yml s3://$S3_BUCKET/
......
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