-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.drone.yml
34 lines (31 loc) · 959 Bytes
/
.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
---
kind: pipeline
name: default
steps:
- name: build
image: docker
volumes:
- name: docker-sock
path: /var/run/host.sock
environment:
DOCKER_PASSWORD:
from_secret: DOCKER_PUBLIC_PASSWORD
DOCKER_USER:
from_secret: DOCKER_PUBLIC_USER
commands:
- export DOCKER_HOST=unix:///var/run/host.sock
- docker login -u 'robot$droneci' -p $DOCKER_PASSWORD harbor.dsrd.libraries.psu.edu
- docker build -t harbor.dsrd.libraries.psu.edu/public/chef-lint:$DRONE_BUILD_NUMBER .
- docker tag harbor.dsrd.libraries.psu.edu/public/chef-lint:$DRONE_BUILD_NUMBER harbor.dsrd.libraries.psu.edu/public/chef-lint:latest
- docker push harbor.dsrd.libraries.psu.edu/public/chef-lint
when:
branch:
- master
volumes:
- name: docker-sock
host:
path: /var/run/docker.sock
---
kind: signature
hmac: 11c386f85d9c90d649c003ba717f872c254e278c70deb3c13c219ed66a8c0f8d
...