feat: auto publish img from CI
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
Aravinth Manivannan 2023-09-27 19:27:46 +05:30
parent e3e85a9bc3
commit 075676fa13
Signed by: realaravinth
GPG key ID: F8F50389936984FF
2 changed files with 21 additions and 1 deletions

20
.woodpecker.yml Normal file
View file

@ -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

View file

@ -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/