Fix woodpecker config
This commit is contained in:
parent
fbc1f41f27
commit
17cfb7dfd7
1 changed files with 4 additions and 3 deletions
|
|
@ -1,9 +1,8 @@
|
|||
when:
|
||||
event: tag
|
||||
|
||||
steps:
|
||||
build:
|
||||
image: docker:cli
|
||||
when:
|
||||
event: tag
|
||||
commands:
|
||||
- docker build -f docker/Dockerfile -t incr:${CI_COMMIT_TAG} .
|
||||
- docker tag incr:${CI_COMMIT_TAG} incr:latest
|
||||
|
|
@ -12,6 +11,8 @@ steps:
|
|||
|
||||
push:
|
||||
image: docker:cli
|
||||
when:
|
||||
event: tag
|
||||
commands:
|
||||
- echo "$${REGISTRY_PASSWORD}" | docker login codeberg.org -u "$${REGISTRY_USERNAME}" --password-stdin
|
||||
- docker tag incr:${CI_COMMIT_TAG} codeberg.org/YOUR_USERNAME/YOUR_REPO:latest
|
||||
|
|
|
|||
Loading…
Reference in a new issue