Commit e5b5d4bd authored by Philippe Bollard's avatar Philippe Bollard
Browse files

Fix Gitlab-CI

parent b979bb15
image: gricad-registry.univ-grenoble-alpes.fr/kubernetes-alpes/buildah:latest
stages:
- build
variables:
REGISTRY_LOGIN: buildah login -u gitlab-ci-token -p $CI_REGISTRY_PASSWORD
REGISTRY_LOGOUT: buildah logout
IMAGE_BUILD: buildah build-using-dockerfile --storage-driver vfs --format docker
IMAGE_PUSH: buildah push --storage-driver vfs
before_script:
- $REGISTRY_LOGIN $CI_REGISTRY
after_script:
- $REGISTRY_LOGOUT $CI_REGISTRY
build:
stage: build
image: gricad-registry.univ-grenoble-alpes.fr/kubernetes-alpes/buildah:latest
tags:
- dind
variables:
REGISTRY_LOGIN: buildah login -u gitlab-ci-token -p $CI_REGISTRY_PASSWORD
REGISTRY_LOGOUT: buildah logout
IMAGE_BUILD: buildah build-using-dockerfile --storage-driver vfs --format docker
IMAGE_PUSH: buildah push --storage-driver vfs
DOCKERFILE: Dockerfile
IMAGE_NAME: $CI_REGISTRY_IMAGE/ws-timeseries:$CI_COMMIT_SHORT_SHA
script:
- $REGISTRY_LOGIN $CI_REGISTRY
- echo $CI_COMMIT_SHORT_SHA > ./static/commit.txt
- $IMAGE_BUILD --file $DOCKERFILE $BUILD_ARG --tag $IMAGE_NAME .
- $IMAGE_PUSH $IMAGE_NAME $IMAGE_NAME
- $REGISTRY_LOGOUT $CI_REGISTRY
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