From 075676fa1339fe66adbeeca2049945a5d073d056 Mon Sep 17 00:00:00 2001 From: Aravinth Manivannan Date: Wed, 27 Sep 2023 19:27:46 +0530 Subject: [PATCH] feat: auto publish img from CI --- .woodpecker.yml | 20 ++++++++++++++++++++ Dockerfile | 2 +- 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 .woodpecker.yml diff --git a/.woodpecker.yml b/.woodpecker.yml new file mode 100644 index 0000000..700db63 --- /dev/null +++ b/.woodpecker.yml @@ -0,0 +1,20 @@ +pipeline: + build_docker_img: + image: plugins/docker + when: + event: [pull_request] + settings: + dry_run: true + repo: forgeflux/ftest-docker-cmd-tester + tags: latest + + build_and_publish_docker_img: + image: plugins/docker + when: + event: [push, tag, deployment] + settings: + username: forgeflux + password: + from_secret: DOCKER_TOKEN + repo: forgeflux/ftest-docker-cmd-tester + tags: latest diff --git a/Dockerfile b/Dockerfile index 8cda260..2ed816e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,7 +4,7 @@ FROM debian:latest -LABEL org.opencontainers.image.source https://git.batsense.net/ForgeFlux/ftest +LABEL org.opencontainers.image.source https://git.batsense.net/ForgeFlux/ftest-docker-cmd-tester RUN mkdir /sr/ WORKDIR /src/