1
0
Fork 0
This repository has been archived on 2023-06-13. You can view files and clone it, but cannot push or open issues or pull requests.
docker-registry/.drone.yml

49 lines
1.2 KiB
YAML

---
kind: pipeline
type: exec
name: default
platform:
os: linux
arch: amd64
steps:
- name: build
commands:
- docker build -t pdr.nephatrine.net/nephatrine/docker-registry:latest .
- HOME=/mnt/config/home docker push pdr.nephatrine.net/nephatrine/docker-registry:latest
- docker tag pdr.nephatrine.net/nephatrine/docker-registry:latest nephatrine/docker-registry:latest
- HOME=/mnt/config/home docker push nephatrine/docker-registry:latest
- docker rmi pdr.nephatrine.net/nephatrine/docker-registry:latest
---
kind: pipeline
name: after
steps:
- name: notify
image: appleboy/drone-discord
failure: ignore
settings:
avatar_url: https://nephatrine.net/images/buttons/drone-ci.png
message: "Build of **[{{repo.name}}:{{commit.branch}}](<https://code.nephatrine.net/nephatrine/{{repo.name}}/src/branch/{{commit.branch}}>)** returned [{{build.status}}](<{{build.link}}>)."
username: DroneCI
webhook_id:
from_secret: wh-infra-id
webhook_token:
from_secret: wh-infra-tok
depends_on:
- default
trigger:
status:
- success
- failure
---
kind: signature
hmac: ab81157fca9939dba824db6bb99810381fb9456e60530fda7de594e0d0d9c222
...