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

This commit is contained in:
Aravinth Manivannan 2023-09-27 15:47:47 +05:30
parent 15184ad4cb
commit b9d17d75f5
Signed by: realaravinth
GPG key ID: F8F50389936984FF
2 changed files with 22 additions and 0 deletions

2
.env-sample Normal file
View file

@ -0,0 +1,2 @@
export FORGEJO_URL="http://localhost:7000"
export FORGEJO_SSH_URL="ssh://git@localhost:2222"

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/forgejo-init-script
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/forgejo-init-script
tags: latest