mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-12-18 17:24:19 -05:00
932e104468
N.B. requires requirements.txt to be generated in repo root beforehand
20 lines
549 B
YAML
20 lines
549 B
YAML
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:
|
|
- synversion=$(cat pyproject.toml | grep '^version =' | sed -E 's/^version = "(.+)"$/\1/')
|
|
- docker build --tag $CI_REGISTRY_IMAGE:latest --tag $CI_REGISTRY_IMAGE:$synversion .
|
|
- docker push $CI_REGISTRY_IMAGE:latest
|
|
- docker push $CI_REGISTRY_IMAGE:$synversion
|
|
- docker rmi $CI_REGISTRY_IMAGE:latest $CI_REGISTRY_IMAGE:$synversion
|