-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
36 lines (36 loc) · 958 Bytes
/
.gitlab-ci.yml
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
variables:
DOCKER_DRIVER: overlay2
DOCKER_TLS_CERTDIR: "/certs"
stages:
- build
- test
- deploy
services:
- docker:dind
build_docker:
image: docker:stable
stage: build
before_script:
- docker info
script:
- docker build -t mediabutler/cli-windows:${CI_COMMIT_REF_NAME} .
test_docker:
stage: test
script:
- echo "Should have tested Docker"
deploy_docker_int:
stage: deploy
before_script:
- docker login -u "gitlab-ci-token" -p $CI_JOB_TOKEN reg.mediabutler.app
script:
- docker build -t reg.mediabutler.app/mediabutler/windows-cli-utility:${CI_COMMIT_REF_NAME} .
- docker push reg.mediabutler.app/mediabutler/windows-cli-utility:${CI_COMMIT_REF_NAME}
deploy_docker_ext:
stage: deploy
before_script:
- docker login -u $DOCKER_USERNAME -p $DOCKER_PASSWORD docker.io
script:
- docker build -t mediabutler/cli-windows:latest .
- docker push mediabutler/cli-windows:latest
only:
- master