From ce39f3843fd434245c355317458f95a138197d89 Mon Sep 17 00:00:00 2001 From: Aire-One Date: Fri, 9 Dec 2022 18:22:59 +0100 Subject: [PATCH 1/3] ci(build-docker): force tag to "latest" With the `auto_tag` option, we would have change the docker images tags based on the project tag. --- .woodpecker/docker-build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.woodpecker/docker-build.yml b/.woodpecker/docker-build.yml index 6ba304e..9c01358 100644 --- a/.woodpecker/docker-build.yml +++ b/.woodpecker/docker-build.yml @@ -28,7 +28,7 @@ pipeline: platforms: *platforms registry: gitea.aireone.xyz repo: *repo - auto_tag: true + tag: latest username: from_secret: publish_username password: -- 2.40.1 From bdd0dfa6898ce9cf1ed7e8e9c02b5465207071b9 Mon Sep 17 00:00:00 2001 From: Aire-One Date: Fri, 9 Dec 2022 18:23:53 +0100 Subject: [PATCH 2/3] ci(docker-build): use the image name in the repo --- .woodpecker/docker-build.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.woodpecker/docker-build.yml b/.woodpecker/docker-build.yml index 9c01358..f677dbc 100644 --- a/.woodpecker/docker-build.yml +++ b/.woodpecker/docker-build.yml @@ -1,6 +1,5 @@ variables: - &buildx woodpeckerci/plugin-docker-buildx:2.0.0 - - &repo gitea.aireone.xyz/${CI_REPO,,} - &platforms linux/amd64 matrix: @@ -27,7 +26,7 @@ pipeline: dockerfile: ${DOCKERFILE} platforms: *platforms registry: gitea.aireone.xyz - repo: *repo + repo: gitea.aireone.xyz/${CI_REPO,,}/${DOCKERFILE} tag: latest username: from_secret: publish_username -- 2.40.1 From bd2b099172b698f1f73fe9021051fd286fb495bf Mon Sep 17 00:00:00 2001 From: Aire-One Date: Fri, 9 Dec 2022 18:26:29 +0100 Subject: [PATCH 3/3] ci(docker-build): remove `repo` from `dryrun` step --- .woodpecker/docker-build.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.woodpecker/docker-build.yml b/.woodpecker/docker-build.yml index f677dbc..22d7b19 100644 --- a/.woodpecker/docker-build.yml +++ b/.woodpecker/docker-build.yml @@ -15,7 +15,6 @@ pipeline: dockerfile: ${DOCKERFILE} platforms: *platforms dry_run: true - repo: *repo when: event: pull_request path: ${DOCKERFILE} -- 2.40.1