22 lines
650 B
YAML
22 lines
650 B
YAML
image: mcr.microsoft.com/dotnet/sdk:9.0
|
|
|
|
stages:
|
|
- publish-help
|
|
|
|
publish-help:
|
|
stage: publish-help
|
|
image: docker:latest
|
|
services:
|
|
- name: docker:dind
|
|
alias: docker
|
|
script:
|
|
- export VERSION=$(echo $CI_COMMIT_TAG | sed 's/^v//')
|
|
- docker login -u leon.hoppe -p ${CI_REGISTRY_PASSWORD} registry.leon-hoppe.de
|
|
- docker build -t registry.leon-hoppe.de/leon.hoppe/hopframe:$VERSION -t registry.leon-hoppe.de/leon.hoppe/hopframe:latest .
|
|
- docker push registry.leon-hoppe.de/leon.hoppe/hopframe:$VERSION
|
|
- docker push registry.leon-hoppe.de/leon.hoppe/hopframe:latest
|
|
only:
|
|
- tags
|
|
dependencies:
|
|
- publish
|