website/.woodpecker/docker-build.yml

28 lines
690 B
YAML
Raw Normal View History

2023-06-19 05:05:37 +00:00
pipeline:
create-tags:
when:
event: push
branch: main
image: node:20-bookworm
pull: true
commands:
- echo $(date -u +%Y-%m-%d_%H%M%S) > .docker_tags
- echo "latest" >> .docker_tags
publish:
when:
event: push
branch: master
image: woodpeckerci/plugin-docker-buildx
settings:
pull_image: true
dockerfile: Dockerfile
2023-06-19 05:06:12 +00:00
# tags_file: .docker_tags
2023-06-19 05:05:37 +00:00
auto_tag: true
secrets: [ docker_registry, docker_username, docker_password ]
registry: ${DOCKER_REGISTRY}
repo: simplesystems/website
username:
from_secret: docker_username
password:
from_secret: docker_password