[buildbot] docker: deploy only manually and on master/tags
LEDE Commits
lede-commits at lists.infradead.org
Wed Nov 3 06:04:42 PDT 2021
ynezz pushed a commit to buildbot.git, branch master:
https://git.openwrt.org/fecd899e8189072eea62f15f18ed2fcb7661b881
commit fecd899e8189072eea62f15f18ed2fcb7661b881
Author: Paul Spooren <mail at aparcar.org>
AuthorDate: Sat Sep 4 15:51:07 2021 -1000
docker: deploy only manually and on master/tags
Unmerged branches shouldn't be deployed as "latest" image, only tags and
`master` branches should.
It is still possible to use containers from tested branches since they
are uploaded to the container registry using their *commit slug*.
Signed-off-by: Paul Spooren <mail at aparcar.org>
---
.gitlab/docker.yml | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/.gitlab/docker.yml b/.gitlab/docker.yml
index 4c4fc8f..9140432 100644
--- a/.gitlab/docker.yml
+++ b/.gitlab/docker.yml
@@ -23,6 +23,10 @@
.deploy Docker image:
extends: .docker in docker
+ only:
+ - master
+ - tags
+ when: manual
script:
- export IMAGE_NAME="$(echo $CI_JOB_NAME | sed 's/deploy Docker image \(.*\)/\1/')"
- docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
More information about the lede-commits
mailing list