Debug woodpecker
This commit is contained in:
parent
e3f04f0e77
commit
30d1deb18b
1 changed files with 17 additions and 12 deletions
|
|
@ -1,14 +1,19 @@
|
|||
when:
|
||||
event: tag
|
||||
|
||||
steps:
|
||||
debug-env:
|
||||
image: alpine
|
||||
environment:
|
||||
REGISTRY_USERNAME:
|
||||
from_secret: REGISTRY_USERNAME
|
||||
REGISTRY_PASSWORD:
|
||||
from_secret: REGISTRY_PASSWORD
|
||||
build-image:
|
||||
image: docker
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
commands:
|
||||
- echo "🔍 REGISTRY_USERNAME = ${REGISTRY_USERNAME}"
|
||||
- echo "🔍 REGISTRY_PASSWORD = ${REGISTRY_PASSWORD}"
|
||||
when:
|
||||
event:
|
||||
- tag
|
||||
- echo "⚙️ Building Docker image for ${CI_COMMIT_TAG}"
|
||||
- docker build -t codeberg.org/${CI_REPO}:${CI_COMMIT_TAG} .
|
||||
|
||||
push-image:
|
||||
image: docker
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
commands:
|
||||
- echo "📤 Pushing image codeberg.org/${CI_REPO}:${CI_COMMIT_TAG}"
|
||||
- docker push codeberg.org/${CI_REPO}:${CI_COMMIT_TAG}
|
||||
|
|
|
|||
Loading…
Reference in a new issue