Files
docker-seafile-client/.gitlab-ci.yml
2019-03-15 11:26:51 +01:00

29 lines
543 B
YAML

image: docker:latest
services:
- docker:dind
stages:
- build_publish
staging:
stage: build_publish
before_script:
- apk add bash
- echo $CI_JOB_TOKEN | docker login -u $CI_REGISTRY_USER $CI_REGISTRY --password-stdin
script:
- /bin/bash utils/publish/staging
only:
- staging
production:
stage: build_publish
before_script:
- apk add bash
- echo $CI_JOB_TOKEN | docker login -u $CI_REGISTRY_USER $CI_REGISTRY --password-stdin
script:
- /bin/bash utils/publish/production.sh
only:
- tags
except:
- branches