@@ -1,7 +1,9 @@
stages:
+ - containers
- build
- test
include:
+ - 'automation/gitlab-ci/containers.yaml'
- 'automation/gitlab-ci/build.yaml'
- 'automation/gitlab-ci/test.yaml'
new file mode 100644
@@ -0,0 +1,22 @@
+debian-stable-container:
+ stage: containers
+ image: docker:stable
+ variables:
+ BUILD_CONTAINER: debian/stable
+ tags:
+ - container-builder
+ only:
+ refs:
+ - staging
+ changes:
+ - automation/build/${BUILD_CONTAINER}.dockerfile
+ services:
+ - docker:dind
+ before_script:
+ - apk add make
+ - docker info
+ - docker login -u $CI_DEPLOY_USER -p $CI_DEPLOY_PASSWORD $CI_REGISTRY
+ script:
+ - make -C automation/build ${BUILD_CONTAINER} PUSH=1
+ after_script:
+ - docker logout
Only run this on the staging branch, whenever the dockerfile changes. Signed-off-by: Anthony PERARD <anthony.perard@citrix.com> --- .gitlab-ci.yml | 2 ++ automation/gitlab-ci/containers.yaml | 22 ++++++++++++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 automation/gitlab-ci/containers.yaml