Skip to content
Snippets Groups Projects
Commit fe8e9c27 authored by Sylvester Joosten's avatar Sylvester Joosten
Browse files

updated CI to have develop and release modes

parent 0ebf417e
Branches
Tags
1 merge request!3v2.0.1
...@@ -5,25 +5,51 @@ stages: ...@@ -5,25 +5,51 @@ stages:
- phase2 - phase2
- phase3 - phase3
eic_builder_docker: eic_builder_release:
stage: phase1 stage: phase1
tags: tags:
- sodium dind - sodium dind
only:
- tags
- master
script:
- cd containers/builder
- head Dockerfile
- make login
- make release-cached
eic_builder_develop:
stage: phase1
tags:
- sodium dind
only:
- develop
script: script:
- cd containers/builder - cd containers/builder
- head Dockerfile - head Dockerfile
- make login - make login
- make develop-cached - make develop-cached
eic_docker: eic_release:
stage: phase2 stage: phase2
tags: tags:
- sodium dind - sodium dind
when: manual only:
- tags
- master
script: script:
- cd containers/release - cd containers/release
- make login - make login
- make release-cached - make release-cached
eic_develop:
stage: phase2
tags:
- sodium dind
only:
- develop
script:
- cd containers/release
- make login
- make develop-cached
eic_builder_singularity: eic_builder_singularity:
stage: phase2 stage: phase2
......
...@@ -81,7 +81,12 @@ release: build-nc publish ## Make a release by building and publishing the `{ver ...@@ -81,7 +81,12 @@ release: build-nc publish ## Make a release by building and publishing the `{ver
@echo "Cleaning up" @echo "Cleaning up"
docker rmi $(APP_NAME):latest docker rmi $(APP_NAME):latest
develop: build-nc publish-dev ## Develop build, do not publish latest
@echo "Cleaning up"
docker rmi $(APP_NAME):unstable
release-cached: build publish ## Make a release by building and publishing the `{version}` ans `latest` tagged containers to ECR release-cached: build publish ## Make a release by building and publishing the `{version}` ans `latest` tagged containers to ECR
develop-cached: build login publish-dev ## develop release
publish: login publish-latest publish-version #publish-version ## Publish the `{version}` ans `latest` tagged containers to ECR publish: login publish-latest publish-version #publish-version ## Publish the `{version}` ans `latest` tagged containers to ECR
@echo "Publishing done" @echo "Publishing done"
...@@ -93,6 +98,11 @@ publish-latest: ## Publish the `latest` taged container to ECR ...@@ -93,6 +98,11 @@ publish-latest: ## Publish the `latest` taged container to ECR
docker push $(REG_NAME)/$(GL_REG_GROUP)/$(APP_NAME):latest docker push $(REG_NAME)/$(GL_REG_GROUP)/$(APP_NAME):latest
#docker rmi $(REG_NAME)/$(GL_REG_GROUP)/$(APP_NAME):latest #docker rmi $(REG_NAME)/$(GL_REG_GROUP)/$(APP_NAME):latest
publish-dev: ## Publish the `unstable` taged container to ECR
@echo 'publish unstable to $(REG_NAME)/$(GL_REG_GROUP)/$(APP_NAME)'
docker tag $(APP_NAME):latest $(REG_NAME)/$(GL_REG_GROUP)/$(APP_NAME):unstable
docker push $(REG_NAME)/$(GL_REG_GROUP)/$(APP_NAME):unstable
publish-version: tag-version ## Publish the `{version}` taged container to ECR publish-version: tag-version ## Publish the `{version}` taged container to ECR
@echo 'publish latest to $(REG_NAME)/$(GL_REG_GROUP)/$(APP_NAME):$(VERSION)' @echo 'publish latest to $(REG_NAME)/$(GL_REG_GROUP)/$(APP_NAME):$(VERSION)'
docker tag $(APP_NAME):latest $(REG_NAME)/$(GL_REG_GROUP)/$(APP_NAME):$(VERSION) docker tag $(APP_NAME):latest $(REG_NAME)/$(GL_REG_GROUP)/$(APP_NAME):$(VERSION)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment