Fixed pipeline
This commit is contained in:
@@ -49,6 +49,11 @@ build:
|
|||||||
|
|
||||||
publish:
|
publish:
|
||||||
stage: publish
|
stage: publish
|
||||||
|
needs: ["build"]
|
||||||
|
image: docker:latest
|
||||||
|
services:
|
||||||
|
- name: docker:dind
|
||||||
|
alias: docker
|
||||||
script:
|
script:
|
||||||
- export VERSION=$(echo $CI_COMMIT_TAG | sed 's/^v//')
|
- export VERSION=$(echo $CI_COMMIT_TAG | sed 's/^v//')
|
||||||
- docker login -u leon.hoppe -p ${CI_REGISTRY_PASSWORD} registry.leon-hoppe.de
|
- docker login -u leon.hoppe -p ${CI_REGISTRY_PASSWORD} registry.leon-hoppe.de
|
||||||
@@ -57,5 +62,3 @@ publish:
|
|||||||
- docker push registry.leon-hoppe.de/leon.hoppe/worktime:latest
|
- docker push registry.leon-hoppe.de/leon.hoppe/worktime:latest
|
||||||
only:
|
only:
|
||||||
- tags
|
- tags
|
||||||
dependencies:
|
|
||||||
- build
|
|
||||||
|
|||||||
10
build.sh
10
build.sh
@@ -1,10 +0,0 @@
|
|||||||
echo "Creating Version v$1"
|
|
||||||
|
|
||||||
# Build program
|
|
||||||
docker build -t ghcr.io/leonhoppe/worktime:latest -t ghcr.io/leonhoppe/worktime:$1 .
|
|
||||||
|
|
||||||
# Deploy latest version
|
|
||||||
docker push ghcr.io/leonhoppe/worktime:latest
|
|
||||||
|
|
||||||
# Deploy specified version
|
|
||||||
docker push ghcr.io/leonhoppe/worktime:$1
|
|
||||||
Reference in New Issue
Block a user