cgk-rooster-streamen/.woodpecker.yaml
2025-02-14 13:38:08 +01:00

18 lines
534 B
YAML

when:
- event: push
branch: master
steps:
- name: build
image: docker:dind
volumes:
- /var/run/docker.sock:/var/run/docker.sock
environment:
IMAGE_NAME: gitea.b7d.nl/${CI_REPO_OWNER}/${CI_REPO_NAME}
commands:
- docker login gitea.b7d.nl -u $GITEA_USER -p $GITEA_TOKEN
- docker build -t $IMAGE_NAME:$CI_COMMIT_SHA -f Dockerfile-prod .
- docker tag $IMAGE_NAME:$CI_COMMIT_SHA $IMAGE_NAME:latest
- docker push $IMAGE_NAME:$CI_COMMIT_SHA
- docker push $IMAGE_NAME:latest