ci: variable for name

This commit is contained in:
Michael Grote 2024-02-09 11:13:47 +01:00
parent d4bbe36d90
commit 265f3e2cdc

View file

@ -38,21 +38,21 @@ steps:
- source .variables
- |
docker buildx build \
--tag registry.mgrote.net/routeros-config-export \
--tag registry.mgrote.net/routeros-config-export:${CI_COMMIT_SHA:0:8} \
--tag registry.mgrote.net/routeros-config-export:${CI_COMMIT_BRANCH} \
--tag registry.mgrote.net/routeros-config-export:latest \
--tag registry.mgrote.net/routeros-config-export:$VERSION \
--tag registry.mgrote.net/$CI_REPO_NAME \
--tag registry.mgrote.net/$CI_REPO_NAME:${CI_COMMIT_SHA:0:8} \
--tag registry.mgrote.net/$CI_REPO_NAME:${CI_COMMIT_BRANCH} \
--tag registry.mgrote.net/$CI_REPO_NAME:latest \
--tag registry.mgrote.net/$CI_REPO_NAME:$VERSION \
--label org.opencontainers.image.url=$CI_REPO_URL \
--label org.opencontainers.image.source=$CI_REPO_URL \
--label org.opencontainers.image.revision=$CI_COMMIT_SHA \
--label org.opencontainers.image.created=$DATE \
--file Dockerfile .
- docker push registry.mgrote.net/routeros-config-export:${CI_COMMIT_SHA:0:8}
- docker push registry.mgrote.net/routeros-config-export:${CI_COMMIT_BRANCH}
- docker push registry.mgrote.net/routeros-config-export:latest
- docker push registry.mgrote.net/routeros-config-export:$VERSION
- docker push registry.mgrote.net/routeros-config-export
- docker push registry.mgrote.net/$CI_REPO_NAME:${CI_COMMIT_SHA:0:8}
- docker push registry.mgrote.net/$CI_REPO_NAME:${CI_COMMIT_BRANCH}
- docker push registry.mgrote.net/$CI_REPO_NAME:latest
- docker push registry.mgrote.net/$CI_REPO_NAME:$VERSION
- docker push registry.mgrote.net/$CI_REPO_NAME
when:
- evaluate: 'CI_COMMIT_AUTHOR_EMAIL != "renovate@mgrote.net"'
...