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:
|
steps:
|
||||||
build:
|
build:
|
||||||
image: docker:cli
|
image: docker:cli
|
||||||
|
when:
|
||||||
|
event: tag
|
||||||
commands:
|
commands:
|
||||||
- docker build -f docker/Dockerfile -t incr:${CI_COMMIT_TAG} .
|
- docker build -f docker/Dockerfile -t incr:${CI_COMMIT_TAG} .
|
||||||
- docker tag incr:${CI_COMMIT_TAG} incr:latest
|
- docker tag incr:${CI_COMMIT_TAG} incr:latest
|
||||||
|
|
@ -12,6 +11,8 @@ steps:
|
||||||
|
|
||||||
push:
|
push:
|
||||||
image: docker:cli
|
image: docker:cli
|
||||||
|
when:
|
||||||
|
event: tag
|
||||||
commands:
|
commands:
|
||||||
- echo "$${REGISTRY_PASSWORD}" | docker login codeberg.org -u "$${REGISTRY_USERNAME}" --password-stdin
|
- 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
|
- docker tag incr:${CI_COMMIT_TAG} codeberg.org/YOUR_USERNAME/YOUR_REPO:latest
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue