add woodpecker CI
This commit is contained in:
parent
e84f93efca
commit
730326ede8
1 changed files with 30 additions and 0 deletions
30
.woodpecker/docker-deploy.yml
Normal file
30
.woodpecker/docker-deploy.yml
Normal file
|
@ -0,0 +1,30 @@
|
|||
steps:
|
||||
docker-deploy-pr:
|
||||
when:
|
||||
- event: pull_request
|
||||
image: woodpeckerci/plugin-docker-buildx
|
||||
settings:
|
||||
dockerfile: Dockerfile
|
||||
platforms: linux/arm/v7,linux/arm64/v8,linux/amd64
|
||||
repo: lauralani/ntppool-exporter
|
||||
registry: https://index.docker.io/v1/
|
||||
tags: pr-${CI_COMMIT_PULL_REQUEST}
|
||||
username: lauralani
|
||||
password:
|
||||
from_secret: dockerhub_token
|
||||
|
||||
|
||||
docker-deploy-tag:
|
||||
when:
|
||||
event:
|
||||
- tag
|
||||
image: woodpeckerci/plugin-docker-buildx
|
||||
settings:
|
||||
dockerfile: Dockerfile
|
||||
platforms: linux/arm/v7,linux/arm64/v8,linux/amd64
|
||||
repo: lauralani/ntppool-exporter
|
||||
registry: https://index.docker.io/v1/
|
||||
auto_tag: true
|
||||
username: lauralani
|
||||
password:
|
||||
from_secret: dockerhub_token
|
Loading…
Reference in a new issue