website/.woodpecker/docker-build.yml
jeff b9fdd0a5be
Some checks failed
ci/woodpecker/push/docker-build Pipeline failed
ci
2023-06-18 22:05:37 -07:00

28 lines
689 B
YAML

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
tags_file: .docker_tags
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