1
0
mirror of https://github.com/gsi-upm/senpy synced 2024-11-22 00:02:28 +00:00

Please, please, please let it pass!

Am I a complete moron?
This commit is contained in:
J. Fernando Sánchez 2017-02-27 20:22:55 +01:00
parent c72094b94b
commit 9daae8dda7
2 changed files with 18 additions and 9 deletions

View File

@ -37,7 +37,6 @@ test-2.7:
- make -e push-$PYTHON_VERSION - make -e push-$PYTHON_VERSION
only: only:
- tags - tags
- master
- triggers - triggers
push-3.5: push-3.5:
@ -54,19 +53,27 @@ push-2.7:
VERSION: $CI_BUILD_TAG VERSION: $CI_BUILD_TAG
IMAGENAME: $CI_REGISTRY_IMAGE IMAGENAME: $CI_REGISTRY_IMAGE
push-latest: push-main:
stage: push <<: *image_definition
variables: variables:
PYTHON_VERSION: main
VERSION: $CI_BUILD_TAG
IMAGENAME: $CI_REGISTRY_IMAGE
push-latest:
<<: *image_definition
variables:
PYTHON_VERSION: latest
VERSION: $CI_BUILD_TAG
IMAGENAME: $CI_REGISTRY_IMAGE IMAGENAME: $CI_REGISTRY_IMAGE
before_script:
- docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN $CI_REGISTRY
script:
- make -e push-latest
only: only:
- master - master
- tags
- triggers - triggers
clean : clean :
stage: clean stage: clean
script: script:
- make -e clean - make -e clean
only:
- master

View File

@ -99,7 +99,9 @@ push-latest: build-$(PYMAIN)
docker push '$(IMAGEWTAG)' docker push '$(IMAGEWTAG)'
push-%: build-% push-%: build-%
docker push $(IMAGEWTAG)-python$* docker push $(IMAGE):$(VERSION)-python$*
push-main: push-$(PYMAIN)
ci: ci:
gitlab-runner exec docker --docker-volumes /var/run/docker.sock:/var/run/docker.sock --env CI_PROJECT_NAME=$(NAME) ${action} gitlab-runner exec docker --docker-volumes /var/run/docker.sock:/var/run/docker.sock --env CI_PROJECT_NAME=$(NAME) ${action}