From 2af76f85579f58a6ee35c74e24f6136a295ec201 Mon Sep 17 00:00:00 2001 From: Mirco Date: Tue, 30 May 2023 08:47:59 +0200 Subject: [PATCH] [skip-ci] use ci to publish docker image --- .gitlab-ci.yml | 8 ++++++++ infrastructure/docker-federated/build.py | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 6f746f2..747366c 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -114,3 +114,11 @@ release: --assets-link "{\"name\":\"c4k-forgejo.js\",\"url\":\"https://gitlab.com/domaindrivenarchitecture/c4k-forgejo/-/jobs/${CI_JOB_ID}/artifacts/file/target/frontend-build/c4k-forgejo.js\"}" \ --assets-link "{\"name\":\"c4k-forgejo.js.sha256\",\"url\":\"https://gitlab.com/domaindrivenarchitecture/c4k-forgejo/-/jobs/${CI_JOB_ID}/artifacts/file/target/frontend-build/c4k-forgejo.js.sha256\"}" \ --assets-link "{\"name\":\"c4k-forgejo.js.sha512\",\"url\":\"https://gitlab.com/domaindrivenarchitecture/c4k-forgejo/-/jobs/${CI_JOB_ID}/artifacts/file/target/frontend-build/c4k-forgejo.js.sha512\"}" \ + +forgejo-image-test-publish: + image: domaindrivenarchitecture/devops-build:latest + stage: image + rules: + - if: '$CI_COMMIT_TAG != null' + script: + - cd infrastructure/docker-federated && pyb image test publish \ No newline at end of file diff --git a/infrastructure/docker-federated/build.py b/infrastructure/docker-federated/build.py index 9919c53..89be081 100644 --- a/infrastructure/docker-federated/build.py +++ b/infrastructure/docker-federated/build.py @@ -12,7 +12,7 @@ class MyBuild(DevopsDockerBuild): @init def initialize(project): - project.build_depends_on('ddadevops>=0.12.4') + project.build_depends_on('ddadevops>=0.15.5') stage = 'prod' dockerhub_user = environ.get('DOCKERHUB_USER') if not dockerhub_user: