feat: publish docker img from CI
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
parent
15184ad4cb
commit
b9d17d75f5
2 changed files with 22 additions and 0 deletions
2
.env-sample
Normal file
2
.env-sample
Normal file
|
@ -0,0 +1,2 @@
|
|||
export FORGEJO_URL="http://localhost:7000"
|
||||
export FORGEJO_SSH_URL="ssh://git@localhost:2222"
|
20
.woodpecker.yml
Normal file
20
.woodpecker.yml
Normal 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
|
Loading…
Reference in a new issue