mirror of
https://codeberg.org/Codeberg/pages-server.git
synced 2024-11-18 10:29:43 +00:00
publish docker images on tag and push to main (#122)
Co-authored-by: 6543 <6543@obermui.de> Reviewed-on: https://codeberg.org/Codeberg/pages-server/pulls/122
This commit is contained in:
parent
f72bbfd85f
commit
519259f459
1 changed files with 32 additions and 3 deletions
|
@ -26,7 +26,8 @@ pipeline:
|
||||||
when:
|
when:
|
||||||
event: [ "pull_request", "push" ]
|
event: [ "pull_request", "push" ]
|
||||||
|
|
||||||
build-docker:
|
docker-dryrun:
|
||||||
|
group: compliant
|
||||||
image: plugins/kaniko
|
image: plugins/kaniko
|
||||||
settings:
|
settings:
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
|
@ -47,14 +48,14 @@ pipeline:
|
||||||
event: [ "tag" ]
|
event: [ "tag" ]
|
||||||
|
|
||||||
test:
|
test:
|
||||||
image: a6543/golang_just
|
|
||||||
group: test
|
group: test
|
||||||
|
image: a6543/golang_just
|
||||||
commands:
|
commands:
|
||||||
- just test
|
- just test
|
||||||
|
|
||||||
integration-tests:
|
integration-tests:
|
||||||
image: a6543/golang_just
|
|
||||||
group: test
|
group: test
|
||||||
|
image: a6543/golang_just
|
||||||
commands:
|
commands:
|
||||||
- just integration
|
- just integration
|
||||||
environment:
|
environment:
|
||||||
|
@ -78,3 +79,31 @@ pipeline:
|
||||||
- DRONE_COMMIT_REF=${CI_COMMIT_REF}
|
- DRONE_COMMIT_REF=${CI_COMMIT_REF}
|
||||||
when:
|
when:
|
||||||
event: [ "tag" ]
|
event: [ "tag" ]
|
||||||
|
|
||||||
|
docker-next:
|
||||||
|
image: plugins/kaniko
|
||||||
|
settings:
|
||||||
|
registry: codeberg.org
|
||||||
|
dockerfile: Dockerfile
|
||||||
|
repo: Codeberg/pages-server
|
||||||
|
tags: next
|
||||||
|
username:
|
||||||
|
from_secret: bot_user
|
||||||
|
password:
|
||||||
|
from_secret: bot_token
|
||||||
|
when:
|
||||||
|
event: [ "push" ]
|
||||||
|
|
||||||
|
docker-tag:
|
||||||
|
image: plugins/kaniko
|
||||||
|
settings:
|
||||||
|
registry: codeberg.org
|
||||||
|
dockerfile: Dockerfile
|
||||||
|
repo: Codeberg/pages-server
|
||||||
|
tag: [ latest, "${CI_COMMIT_TAG}" ]
|
||||||
|
username:
|
||||||
|
from_secret: bot_user
|
||||||
|
password:
|
||||||
|
from_secret: bot_token
|
||||||
|
when:
|
||||||
|
event: [ "tag" ]
|
||||||
|
|
Loading…
Reference in a new issue