separate build and push
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
ffb95230d2
commit
d10b29efbf
17
.drone.yml
17
.drone.yml
@ -34,13 +34,26 @@ steps:
|
||||
path: /var/run
|
||||
environment:
|
||||
REGISTRY: git.half-9.net
|
||||
USER: n0vember
|
||||
OWNER: containers
|
||||
IMAGE: pihole-exporter
|
||||
TAG: latest
|
||||
commands:
|
||||
- docker build -t $REGISTRY/$OWNER/$IMAGE:$TAG .
|
||||
|
||||
- name: container publish
|
||||
image: registry.gitlab.com/role_unit/role_unit_containers:build
|
||||
privileged: true
|
||||
volumes:
|
||||
- name: dockersock
|
||||
path: /var/run
|
||||
environment:
|
||||
REGISTRY: git.half-9.net
|
||||
OWNER: containers
|
||||
IMAGE: pihole-exporter
|
||||
TAG: latest
|
||||
USER: n0vember
|
||||
TOKEN:
|
||||
from_secret: registry_token
|
||||
commands:
|
||||
- docker login --username="$USER" --password="$TOKEN" $REGISTRY
|
||||
- docker build -t $REGISTRY/$OWNER/$IMAGE:$TAG .
|
||||
- docker push $REGISTRY/$OWNER/$IMAGE:$TAG
|
||||
|
||||
Loading…
Reference in New Issue
Block a user