Implement the new CI scripts

This commit is contained in:
flow.gunso
2020-01-04 10:05:14 +01:00
parent cc9273a982
commit bf2d04f036

View File

@@ -1,40 +1,48 @@
image: docker:latest image: docker:latest
services: services:
- docker:dind - docker:dind
stages: stages:
- build_publish - build
- test
- publish
before_script: before_script:
- apk add bash - apk add bash
cron_or_supervisord: build:
stage: build_publish stage: build
script: script: /bin/bash .utilities/build.sh
- /bin/bash utils/publish/feature--cron-or-supervisord.sh
only:
- feature--cron-or-supervisord
staging:
stage: build_publish
script:
- /bin/bash utils/publish/staging.sh
only:
- staging
production:
stage: build_publish
script:
- /bin/bash utils/publish/production.sh
only: only:
- tags - tags
except: - schedules
- branches artifacts:
path:
- $CI_PROJECT_NAME.tar
test:
stage: test
script: /bin/bash .utilities/test.sh
only:
- tags
- schedules
artifacts:
path:
- $CI_PROJECT_NAME.tar
publish:
stage: publish
script: /bin/bash .utilities/publish.sh
only:
- tags
- schedules
artifacts:
path:
- $CI_PROJECT_NAME.tar
update_docker_hub_full_description: update_docker_hub_full_description:
stage: build_publish stage: publish
script: script: /bin/bash .utilities/update-docker-hub-full-description.sh
- /bin/bash utils/publish/update-docker-hub-full-description.sh
only: only:
- master - master