Debug woodpecker
This commit is contained in:
parent
acf2a6490f
commit
4cb31a43d7
1 changed files with 3 additions and 27 deletions
|
|
@ -1,32 +1,8 @@
|
|||
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
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
|
||||
debug-env:
|
||||
debug-secrets:
|
||||
image: alpine
|
||||
when:
|
||||
event: tag
|
||||
commands:
|
||||
- "echo \"🔍 DEBUG: REGISTRY_USERNAME = ${REGISTRY_USERNAME}\""
|
||||
- "echo \"🔍 DEBUG: REGISTRY_PASSWORD = ${REGISTRY_PASSWORD}\""
|
||||
- env
|
||||
|
||||
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/lvl0/incr:latest"
|
||||
- "docker tag incr:${CI_COMMIT_TAG} codeberg.org/lvl0/incr:${CI_COMMIT_TAG}"
|
||||
- "docker push codeberg.org/lvl0/incr:latest"
|
||||
- "docker push codeberg.org/lvl0/incr:${CI_COMMIT_TAG}"
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
- echo "🔍 REGISTRY_USERNAME = ${REGISTRY_USERNAME}"
|
||||
- echo "🔍 REGISTRY_PASSWORD = ${REGISTRY_PASSWORD:+*** set ***}"
|
||||
|
|
|
|||
Loading…
Reference in a new issue