We're currently are in the process of replacing GitLab and are migrating to Gitea. The new Gitea instance can be found at https://gitea.zom.bi but will ultimately also be reachable via https://git.zom.bi. We will migrate your repositories to Gitea, but you can help us by migrating them yourself (see how in the wiki https://w.zom.bi/index.php/Git#Migrate_a_project_from_GitLab_to_Gitea)

Commit e1f58789 authored by paul's avatar paul Committed by Hive

Enable automatic image build

parent 9eaabc77
Pipeline #73 passed with stage
# Official docker image for docker.
image: docker:latest
services:
- docker:dind
before_script:
- docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
stages:
- build
- deploy
build-master:
stage: build
image: "docker:latest"
tags:
- dind
script:
- docker build -t "$CI_REGISTRY_IMAGE" .
- docker push "$CI_REGISTRY_IMAGE"
only:
- master
build:
stage: build
image: "docker:latest"
tags:
- dind
script:
- docker build -t "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG" .
- docker push "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG"
except:
- master
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