-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.gitlab-ci.yml
61 lines (56 loc) · 1.69 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
stages:
- docs
- build
readme:
tags:
- getflow
stage: docs
image:
name: chko/docker-pushrm
entrypoint: ["/bin/sh", "-c", "/docker-pushrm"]
variables:
DOCKER_USER: $DOCKER_HUB_USER
DOCKER_PASS: $DOCKER_HUB_KEY
PUSHRM_SHORT: Image with cloudflared preinstalled and ssh configured
PUSHRM_TARGET: docker.io/getflow/cloudflared-ssh
PUSHRM_FILE: $CI_PROJECT_DIR/README.md
script: "/bin/true"
build-debian:
tags:
- getflow
stage: build
image: docker:latest
before_script:
- echo $DOCKER_HUB_KEY | docker login -u $DOCKER_HUB_USER --password-stdin
script:
- docker build -t getflow/cloudflared-ssh:latest -t getflow/cloudflared-ssh:debian -f Dockerfile.debian .
- docker push getflow/cloudflared-ssh --all-tags
after_script:
- docker rmi getflow/cloudflared-ssh:latest getflow/cloudflared-ssh:debian
- docker logout
build-docker:
tags:
- getflow
stage: build
image: docker:latest
before_script:
- echo $DOCKER_HUB_KEY | docker login -u $DOCKER_HUB_USER --password-stdin
script:
- docker build -t getflow/cloudflared-ssh:docker -f Dockerfile.docker .
- docker push getflow/cloudflared-ssh:docker
after_script:
- docker rmi getflow/cloudflared-ssh:docker
- docker logout
build-python:
tags:
- getflow
stage: build
image: docker:latest
before_script:
- echo $DOCKER_HUB_KEY | docker login -u $DOCKER_HUB_USER --password-stdin
script:
- docker build -t getflow/cloudflared-ssh:latest -t getflow/cloudflared-ssh:python -f Dockerfile.python .
- docker push getflow/cloudflared-ssh --all-tags
after_script:
- docker rmi getflow/cloudflared-ssh:latest getflow/cloudflared-ssh:python
- docker logout