2020-11-17 18:12:41 -05:00
|
|
|
image: docker:stable
|
|
|
|
|
|
|
|
stages:
|
|
|
|
- build
|
|
|
|
|
|
|
|
build amd64:
|
|
|
|
stage: build
|
|
|
|
tags:
|
|
|
|
- amd64
|
|
|
|
only:
|
|
|
|
- master
|
|
|
|
before_script:
|
|
|
|
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
|
|
|
|
script:
|
2022-04-26 07:52:05 -04:00
|
|
|
- synversion=$(cat pyproject.toml | grep '^version =' | sed -E 's/^version = "(.+)"$/\1/')
|
2022-04-26 13:00:38 -04:00
|
|
|
- docker build --tag $CI_REGISTRY_IMAGE:latest --tag $CI_REGISTRY_IMAGE:$synversion .
|
2020-11-17 18:12:41 -05:00
|
|
|
- docker push $CI_REGISTRY_IMAGE:latest
|
|
|
|
- docker push $CI_REGISTRY_IMAGE:$synversion
|
|
|
|
- docker rmi $CI_REGISTRY_IMAGE:latest $CI_REGISTRY_IMAGE:$synversion
|