Skip to content
Snippets Groups Projects
Commit 0a7f2a40 authored by jurgenhaas's avatar jurgenhaas
Browse files

Update ci

parent cdbd3d3c
No related branches found
No related tags found
1 merge request!3Merging develop into main
......@@ -3,13 +3,18 @@ include:
ref: main
file: '/tagrelease.yml'
variables:
VERSION: ${CI_COMMIT_TAG}
before_script:
- docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
build-master:
stage: build
script:
- docker build -t $CI_REGISTRY_IMAGE .
- docker push $CI_REGISTRY_IMAGE
- docker build --pull --build-arg VERSION=${VERSION} -t ${CI_REGISTRY_IMAGE}:${VERSION} .
- docker push ${CI_REGISTRY_IMAGE}:${VERSION}
- docker tag ${CI_REGISTRY_IMAGE}:${VERSION} ${CI_REGISTRY_IMAGE}:latest
- docker push ${CI_REGISTRY_IMAGE}:latest
only:
- tags
FROM ubuntu:20.04
ARG VERSION=0.9.0
ARG VERSION
LABEL com.example.vendor="LakeDrops" \
maintainer="juergen.haas@lakedrops.com" \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment