-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.drone.yml
55 lines (51 loc) · 1.61 KB
/
.drone.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
# ==============================================================================
# Pull request clone ===========================================================
# ==============================================================================
# Use plugin to checkout pull requests for caching issue:
# https://github.com/drone/drone/issues/2390
# ==============================================================================
clone:
git:
image: registry.fpfis.eu/drone-plugins/git:next
when:
event: [ push, tag ]
pipeline:
# Test image build.
build:
image: git.fpfis.tech.ec.europa.eu/fpfis/dependency_proxy/containers/docker:18-dind
volumes:
- /var/run/docker.sock:/var/run/docker.sock
commands:
- docker ps
- docker build -t openeuropa/triple-store-dev .
# Deploy image to Docker Hub.
publish-docker-image-tag:
image: registry.fpfis.eu/drone-plugins/docker
privileged: true
repo: openeuropa/triple-store-dev
dockerfile: Dockerfile
tags:
- latest
- ${DRONE_TAG}
secrets: [ DOCKER_USERNAME, DOCKER_PASSWORD ]
when:
event: [ tag ]
branch: master
# Deploy image to Gitlab.
publish-docker-image-tag-gitlab:
image: registry.fpfis.eu/drone-plugins/docker
privileged: true
repo: registry.fpfis.eu/openeuropa/triple-store-dev
dockerfile: Dockerfile
tags:
- latest
- ${DRONE_TAG}
registry: registry.fpfis.eu
secrets:
- source: GITLAB_USERNAME
target: DOCKER_USERNAME
- source: GITLAB_PASSWORD
target: DOCKER_PASSWORD
when:
event: [ tag ]
branch: master