parent
7131a3bc5b
commit
b9fdd0a5be
27
.woodpecker/docker-build.yml
Normal file
27
.woodpecker/docker-build.yml
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
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
|
Loading…
Reference in New Issue
Block a user