add: woodpecker pipeline
This commit is contained in:
25
.woodpecker/build.yml
Normal file
25
.woodpecker/build.yml
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
pipeline:
|
||||||
|
check_self:
|
||||||
|
image: alpine
|
||||||
|
secrets: [ DOCKERHUB_TOKEN ]
|
||||||
|
environment:
|
||||||
|
DOCKER_USERNAME: vistanarvas
|
||||||
|
DOCKER_PASSWORD: ${DOCKERHUB_TOKEN}
|
||||||
|
BASE: alpine:latest
|
||||||
|
TARGET: vistanarvas/${CI_REPO_NAME}:latest
|
||||||
|
commands:
|
||||||
|
- bash check.sh
|
||||||
|
failure: ignore
|
||||||
|
|
||||||
|
build_and_publish:
|
||||||
|
image: woodpeckerci/plugin-docker-buildx
|
||||||
|
settings:
|
||||||
|
username: vistanarvas
|
||||||
|
password:
|
||||||
|
from_secret: DOCKERHUB_TOKEN
|
||||||
|
repo: vistanarvas/${CI_REPO_NAME}
|
||||||
|
auto_tag: true
|
||||||
|
when:
|
||||||
|
path:
|
||||||
|
include: [ '.woodpecker/build.yml', 'check.sh' ]
|
||||||
|
event: [push, tag, deployment]
|
||||||
Reference in New Issue
Block a user