diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 9b68d7f..1c156ac 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -4,6 +4,7 @@ stages: - build - test - publish + - publish-help before_script: - echo "Setting up environment" @@ -37,3 +38,16 @@ publish: dependencies: - build - test + +publish-help: + stage: publish-help + 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 diff --git a/.idea/.idea.HopFrame/.idea/workspace.xml b/.idea/.idea.HopFrame/.idea/workspace.xml index 8aef8b9..0de882e 100644 --- a/.idea/.idea.HopFrame/.idea/workspace.xml +++ b/.idea/.idea.HopFrame/.idea/workspace.xml @@ -12,15 +12,10 @@ - - - - - - - - - + + + +