ci: disable cache and enable manual runs
This commit is contained in:
parent
f3461b7f67
commit
444c7779ad
1 changed files with 4 additions and 3 deletions
|
@ -17,7 +17,7 @@ steps:
|
||||||
# set version
|
# set version
|
||||||
- |
|
- |
|
||||||
MAJOR="1"
|
MAJOR="1"
|
||||||
MINOR="1"
|
MINOR="0"
|
||||||
PATCH="$(git rev-list --count "$CI_COMMIT_BRANCH")"
|
PATCH="$(git rev-list --count "$CI_COMMIT_BRANCH")"
|
||||||
VERSION="v$MAJOR.$MINOR.$PATCH"
|
VERSION="v$MAJOR.$MINOR.$PATCH"
|
||||||
if [ "$CI_COMMIT_BRANCH" != "main" ] && [ "$CI_COMMIT_BRANCH" != "master" ]; then
|
if [ "$CI_COMMIT_BRANCH" != "main" ] && [ "$CI_COMMIT_BRANCH" != "master" ]; then
|
||||||
|
@ -29,7 +29,7 @@ steps:
|
||||||
DATE=$(date --iso-8601=seconds)
|
DATE=$(date --iso-8601=seconds)
|
||||||
echo "DATE=$DATE" >> .variables
|
echo "DATE=$DATE" >> .variables
|
||||||
when:
|
when:
|
||||||
- event: [push, pull_request, cron]
|
- event: [push, pull_request, cron, manual]
|
||||||
evaluate: 'CI_COMMIT_AUTHOR_EMAIL != "renovate@mgrote.net"'
|
evaluate: 'CI_COMMIT_AUTHOR_EMAIL != "renovate@mgrote.net"'
|
||||||
|
|
||||||
build_and_push: # damit dieser Step laufen kann muss das Repo in der Woodpecker-GUI "privilegiert" sein
|
build_and_push: # damit dieser Step laufen kann muss das Repo in der Woodpecker-GUI "privilegiert" sein
|
||||||
|
@ -44,6 +44,7 @@ steps:
|
||||||
- docker buildx inspect --bootstrap
|
- docker buildx inspect --bootstrap
|
||||||
- |
|
- |
|
||||||
docker buildx build \
|
docker buildx build \
|
||||||
|
--no-cache \
|
||||||
--platform=linux/amd64 \
|
--platform=linux/amd64 \
|
||||||
--push \
|
--push \
|
||||||
--tag registry.mgrote.net/${CI_REPO_NAME}:${CI_COMMIT_SHA:0:8} \
|
--tag registry.mgrote.net/${CI_REPO_NAME}:${CI_COMMIT_SHA:0:8} \
|
||||||
|
@ -56,6 +57,6 @@ steps:
|
||||||
--label org.opencontainers.image.created=$DATE \
|
--label org.opencontainers.image.created=$DATE \
|
||||||
--file Dockerfile .
|
--file Dockerfile .
|
||||||
when:
|
when:
|
||||||
- event: [push, pull_request, cron]
|
- event: [push, pull_request, cron, manual]
|
||||||
evaluate: 'CI_COMMIT_AUTHOR_EMAIL != "renovate@mgrote.net"'
|
evaluate: 'CI_COMMIT_AUTHOR_EMAIL != "renovate@mgrote.net"'
|
||||||
...
|
...
|
||||||
|
|
Loading…
Reference in a new issue