2020-11-06 18:34:04 +00:00
|
|
|
image: docker:19.03.12
|
|
|
|
|
2020-11-13 08:31:49 +00:00
|
|
|
stages:
|
|
|
|
- build
|
|
|
|
- test
|
|
|
|
- publish
|
|
|
|
|
2020-11-06 18:34:04 +00:00
|
|
|
services:
|
|
|
|
- docker:19.03.12-dind
|
|
|
|
|
|
|
|
before_script:
|
2020-11-13 09:28:11 +00:00
|
|
|
- set -eux; apk add --no-cache build-base python3 py3-pip py3-setuptools;
|
2020-11-13 14:44:36 +00:00
|
|
|
- pip3 install pybuilder ddadevops deprecation python-terraform boto3 mfa
|
2020-11-13 08:57:18 +00:00
|
|
|
- export PATH=$PATH:~/.local/bin
|
2020-11-06 18:34:04 +00:00
|
|
|
|
|
|
|
build:
|
|
|
|
stage: build
|
|
|
|
script:
|
2020-11-13 08:31:49 +00:00
|
|
|
- cd infrastrucure/docker && pyb image
|
|
|
|
|
|
|
|
test:
|
|
|
|
stage: test
|
|
|
|
script:
|
|
|
|
- cd infrastrucure/docker && pyb image
|