24 lines
749 B
YAML
24 lines
749 B
YAML
pipeline:
|
|
check_self:
|
|
image: alpine
|
|
secrets: [ dockerhub_token ]
|
|
environment:
|
|
DOCKER_USERNAME: vistanarvas
|
|
BASE: alpine:latest
|
|
TARGET: vistanarvas/${CI_REPO_NAME}:latest
|
|
commands:
|
|
- apk add curl jq
|
|
- sh 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', 'Dockerfile', 'check.sh' ]
|
|
event: [push, tag, deployment] |