This commit is contained in:
@@ -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 ]
|
||||
Reference in New Issue
Block a user