Skip to content
Snippets Groups Projects
Commit 7365c2b2 authored by Cédric Krier's avatar Cédric Krier :atom:
Browse files

Publish images sequentially

Use resource group from GitLab CI to prevent to publish concurrently images.
With the process mode set to oldest_first, we ensure that the latest published
image is actually the latest build.
parent e8299919
No related branches found
No related tags found
1 merge request!30Publish images sequentially
Pipeline #86732 passed
......@@ -98,6 +98,7 @@
- crane push image-${SERIES}.tar tryton/tryton:${SERIES}
rules:
- if: $CI_COMMIT_BRANCH =~ /^branch\/.*/
resource_group: publish
publish-office:
extends: publish
......@@ -108,6 +109,7 @@
script:
- crane auth login -u ${DOCKER_USER} -p ${DOCKER_PASSWORD} ${DOCKER_SERVER}
- crane push image-${SERIES}-office.tar tryton/tryton:${SERIES}-office
resource_group: publish
publish-latest:
extends: publish
......@@ -120,6 +122,7 @@
parallel:
matrix:
- SERIES: "7.2"
resource_group: publish
publish-office-latest:
extends: publish-latest
......@@ -132,3 +135,4 @@
parallel:
matrix:
- SERIES: "7.2"
resource_group: publish
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment