-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
38 lines (31 loc) · 1.11 KB
/
.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
37
38
image: docker:23.0
stages:
- prepareImage
- prepareImageDevel
variables:
DOCKER_TLS_CERTDIR: ""
services:
- docker:dind
before_script:
- docker info
# - docker login -u "gitlab-ci-token" -p $CI_JOB_TOKEN $CI_REGISTRY
- docker login -u tomsvo -p $DOCKERHUB_ACCESS_TOKEN
buildImage:
stage: prepareImage
script:
# - docker pull registry.gitlab.ics.muni.cz:443/cryoem-dc/fs2od:latest || true
# - docker build --cache-from registry.gitlab.ics.muni.cz:443/cryoem-dc/fs2od:latest -t registry.gitlab.ics.muni.cz:443/cryoem-dc/fs2od:latest -f Dockerfile .
# - docker push registry.gitlab.ics.muni.cz:443/cryoem-dc/fs2od:latest
- docker pull tomsvo/fs2od:latest || true
- docker build --cache-from tomsvo/fs2od:latest --cache-from tomsvo/fs2od:devel -t tomsvo/fs2od:latest -f Dockerfile .
- docker push tomsvo/fs2od:latest
only:
- master
buildImageDevel:
stage: prepareImageDevel
script:
- docker pull tomsvo/fs2od:devel || true
- docker build --cache-from tomsvo/fs2od:devel -t tomsvo/fs2od:devel -f Dockerfile .
- docker push tomsvo/fs2od:devel
only:
- devel