commands test
All checks were successful
ci/woodpecker/push/build_alpine Pipeline was successful

This commit is contained in:
Ruben Momoa
2024-08-22 15:18:32 +02:00
parent 8c9563ec98
commit 6eac9c86b6

View File

@@ -17,21 +17,33 @@ steps:
- if [ "$PREV_DATE" -gt "$BASE_DATE" ]; then touch SKIP_BUILD; fi
volumes:
- /var/run/docker.sock:/var/run/docker.sock
dev_alpine_build_and_publish:
image: woodpeckerci/plugin-docker-buildx
settings:
username: vistanarvas
password:
from_secret: DOCKERHUB_TOKEN
context: ./build
repo: vistanarvas/${CI_REPO_NAME}
tag: ${CI_COMMIT_BRANCH}-alpine
dockerfile: Dockerfile_alpine
test:
image: alpine
commands:
- echo "Hello"
test2:
image: alpine
commands:
- echo "World"
when:
evaluate: '! test -f SKIP_BUILD'
branch:
exclude: [ main, master ]
path:
include: [ '.woodpecker/build_alpine.yml', 'build/*', 'Dockerfile_alpine' ]
event: [ push, manual ]
include:
- SKIP_BUILD
# dev_alpine_build_and_publish:
# image: woodpeckerci/plugin-docker-buildx
# settings:
# username: vistanarvas
# password:
# from_secret: DOCKERHUB_TOKEN
# context: ./build
# repo: vistanarvas/${CI_REPO_NAME}
# tag: ${CI_COMMIT_BRANCH}-alpine
# dockerfile: Dockerfile_alpine
# when:
# evaluate: '! test -f SKIP_BUILD'
# branch:
# exclude: [ main, master ]
# path:
# include: [ '.woodpecker/build_alpine.yml', 'build/*', 'Dockerfile_alpine' ]
# event: [ push, manual ]