1
0
Fork 0

Minor Fixes; Multi-Arch.

This commit is contained in:
Joao Gilberto Magalhaes 2021-08-10 17:56:09 -05:00
parent af3529a373
commit 44f8d2756f
7 changed files with 65 additions and 11 deletions

View file

@ -1,9 +1,26 @@
language: python
python:
- "3.7"
install:
- pip install -r requirements.txt
services:
- docker
script:
- pytest -s tests/
jobs:
include:
- stage: test
if: (type IN (pull_request))
install:
- pip install -r requirements
script:
- pytest -s tests/
- stage: build docker
if: (branch = master) AND (NOT (type IN (pull_request)))
install:
- docker pull byjg/k8s-ci
script:
- docker run --privileged -v /tmp/z:/var/lib/containers -it --rm -v $PWD:/work -w /work -e DOCKER_USERNAME=$DOCKER_USERNAME -e DOCKER_PASSWORD=$DOCKER_PASSWORD -e DOCKER_REGISTRY=$DOCKER_REGISTRY byjg/k8s-ci /work/build-multiarch.sh
- stage: documentation
if: (branch = master) AND (NOT (type IN (pull_request)))
install: skip
script: "curl https://opensource.byjg.com/add-doc.sh | bash /dev/stdin devops docker-easy-haproxy"