Implement the new CI scripts
This commit is contained in:
@@ -4,37 +4,45 @@ 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
|
||||||
Reference in New Issue
Block a user