fix: pipeline

This commit is contained in:
2023-03-11 20:18:55 +01:00
parent 16de631b80
commit cf96ed15a9

View File

@@ -1,25 +1,31 @@
---
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]
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