Commit c7796b82 authored by Daniel Sonck's avatar Daniel Sonck
Browse files

Add GitlabCI file

parent 90f1f228
Pipeline #546 failed with stages
in 31 seconds
stages:
- prepare
- package
app:prepare:
image: alpine/git:v2.26.2
stage: prepare
tags:
- kubernetes
- cluster
script:
- echo "VERSION=$(git describe | sed s!release/!!g)" > variables.env
artifacts:
reports:
dotenv:
- variables.env
rules:
- if: '$CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "development" || $CI_COMMIT_BRANCH == "development" || $CI_COMMIT_TAG =~ /^release\//'
when: on_success
app:package:
stage: package
image: quay.io/buildah/stable:v1.16.0
needs:
- job: app:prepare
artifacts: true
tags:
- kubernetes
- cluster
before_script:
- buildah login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
script:
- buildah bud -t "$CI_REGISTRY_IMAGE:$VERSION"
- buildah push "$CI_REGISTRY_IMAGE:$VERSION" "docker://$CI_REGISTRY_IMAGE:$VERSION"
rules:
- if: '$CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "development" || $CI_COMMIT_BRANCH == "development" || $CI_COMMIT_TAG =~ /^release\//'
when: on_success
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment