-
Notifications
You must be signed in to change notification settings - Fork 26
Expand file tree
/
Copy path.gitlab-ci.yml
More file actions
38 lines (34 loc) · 908 Bytes
/
.gitlab-ci.yml
File metadata and controls
38 lines (34 loc) · 908 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
default:
# Official docker image.
image: docker:latest
services:
- name: docker:dind
alias: docker
command: ["--tls=false"]
stages:
- build
- release
variables:
DOCKER_HOST: tcp://docker:2375/
DOCKER_DRIVER: overlay2
DOCKER_TLS_CERTDIR: ""
build:
stage: build
script:
- docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
- docker build --pull -t "$CI_REGISTRY_IMAGE" .
- docker push "$CI_REGISTRY_IMAGE"
- docker logout
pushrm:
stage: release
image:
name: chko/docker-pushrm
entrypoint: ["/bin/sh", "-c", "/docker-pushrm"]
variables:
DOCKER_USER: $CI_REGISTRY_USER
DOCKER_PASS: $CI_REGISTRY_PASSWORD
PUSHRM_SHORT: Proxmox QDevice in a Container
PUSHRM_TARGET: docker.io/$CI_REGISTRY_USER/proxmox-qdevice
PUSHRM_DEBUG: 1
PUSHRM_FILE: $CI_PROJECT_DIR/README.md
script: "/bin/true"