ci: test variable for name
This commit is contained in:
parent
d2221d4756
commit
80a1eab383
1 changed files with 14 additions and 10 deletions
|
@ -2,6 +2,10 @@
|
||||||
depends_on:
|
depends_on:
|
||||||
- lint
|
- lint
|
||||||
|
|
||||||
|
|
||||||
|
variables: # https://woodpecker-ci.org/docs/usage/advanced-usage
|
||||||
|
- &NAME 'httpd' # wird für die Docker-Tags verwendet
|
||||||
|
|
||||||
clone:
|
clone:
|
||||||
git:
|
git:
|
||||||
image: "woodpeckerci/plugin-git:2.5.0"
|
image: "woodpeckerci/plugin-git:2.5.0"
|
||||||
|
@ -38,21 +42,21 @@ steps:
|
||||||
- source .variables
|
- source .variables
|
||||||
- |
|
- |
|
||||||
docker buildx build \
|
docker buildx build \
|
||||||
--tag registry.mgrote.net/httpd \
|
--tag registry.mgrote.net/*NAME \
|
||||||
--tag registry.mgrote.net/httpd:${CI_COMMIT_SHA:0:8} \
|
--tag registry.mgrote.net/*NAME:${CI_COMMIT_SHA:0:8} \
|
||||||
--tag registry.mgrote.net/httpd:${CI_COMMIT_BRANCH} \
|
--tag registry.mgrote.net/*NAME:${CI_COMMIT_BRANCH} \
|
||||||
--tag registry.mgrote.net/httpd:latest \
|
--tag registry.mgrote.net/*NAME:latest \
|
||||||
--tag registry.mgrote.net/httpd:$VERSION \
|
--tag registry.mgrote.net/*NAME:$VERSION \
|
||||||
--label org.opencontainers.image.url=$CI_REPO_URL \
|
--label org.opencontainers.image.url=$CI_REPO_URL \
|
||||||
--label org.opencontainers.image.source=$CI_REPO_URL \
|
--label org.opencontainers.image.source=$CI_REPO_URL \
|
||||||
--label org.opencontainers.image.revision=$CI_COMMIT_SHA \
|
--label org.opencontainers.image.revision=$CI_COMMIT_SHA \
|
||||||
--label org.opencontainers.image.created=$DATE \
|
--label org.opencontainers.image.created=$DATE \
|
||||||
--file Dockerfile .
|
--file Dockerfile .
|
||||||
- docker push registry.mgrote.net/httpd:${CI_COMMIT_SHA:0:8}
|
- docker push registry.mgrote.net/*NAME:${CI_COMMIT_SHA:0:8}
|
||||||
- docker push registry.mgrote.net/httpd:${CI_COMMIT_BRANCH}
|
- docker push registry.mgrote.net/*NAME:${CI_COMMIT_BRANCH}
|
||||||
- docker push registry.mgrote.net/httpd:latest
|
- docker push registry.mgrote.net/*NAME:latest
|
||||||
- docker push registry.mgrote.net/httpd:$VERSION
|
- docker push registry.mgrote.net/*NAME:$VERSION
|
||||||
- docker push registry.mgrote.net/httpd
|
- docker push registry.mgrote.net/*NAME
|
||||||
when:
|
when:
|
||||||
- evaluate: 'CI_COMMIT_AUTHOR_EMAIL != "renovate@mgrote.net"'
|
- evaluate: 'CI_COMMIT_AUTHOR_EMAIL != "renovate@mgrote.net"'
|
||||||
...
|
...
|
||||||
|
|
Loading…
Reference in a new issue