incr/.woodpecker.yml

22 lines
568 B
YAML
Raw Normal View History

2025-07-13 20:45:23 +02:00
when:
event: tag
2025-07-13 19:30:31 +02:00
steps:
2025-07-13 21:08:51 +02:00
build:
2025-07-13 20:45:23 +02:00
image: docker
2025-07-13 21:08:51 +02:00
environment:
2025-07-13 21:09:25 +02:00
DOCKER_BUILDKIT: "1"
2025-07-13 20:45:23 +02:00
volumes:
- /var/run/docker.sock:/var/run/docker.sock
2025-07-13 19:59:40 +02:00
commands:
2025-07-13 20:45:23 +02:00
- echo "⚙️ Building Docker image for ${CI_COMMIT_TAG}"
2025-07-13 21:08:51 +02:00
- docker build -f docker/Dockerfile -t codeberg.org/${CI_REPO}:${CI_COMMIT_TAG} .
2025-07-13 20:45:23 +02:00
2025-07-13 21:08:51 +02:00
push:
2025-07-13 20:45:23 +02:00
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}