Added CI for building
This commit is contained in:
parent
acfa51e244
commit
6a22a38bc5
1 changed files with 40 additions and 0 deletions
40
.drone.yml
Normal file
40
.drone.yml
Normal file
|
@ -0,0 +1,40 @@
|
|||
---
|
||||
kind: pipeline
|
||||
name: Build-latest
|
||||
|
||||
steps:
|
||||
- name: Build-latest-tag
|
||||
image: docker:dind
|
||||
volumes:
|
||||
- name: dockersock
|
||||
path: /var/run
|
||||
environment:
|
||||
DOCKER_PASSWORD:
|
||||
from_secret: DOCKER_PASSWORD
|
||||
commands:
|
||||
- sleep 30
|
||||
- docker context create build
|
||||
- docker buildx create build --use
|
||||
- echo $DOCKER_PASSWORD | docker login --username Phil --password-stdin gitea.hackmi.ch
|
||||
- docker buildx build
|
||||
--platform linux/amd64
|
||||
--no-cache
|
||||
--push
|
||||
--tag git.hackmi.ch/hackmi.ch/services:latest
|
||||
.
|
||||
|
||||
services:
|
||||
- name: docker
|
||||
image: docker:dind
|
||||
privileged: true
|
||||
volumes:
|
||||
- name: dockersock
|
||||
path: /var/run
|
||||
|
||||
volumes:
|
||||
- name: dockersock
|
||||
temp: {}
|
||||
|
||||
when:
|
||||
branch:
|
||||
- main
|
Loading…
Reference in a new issue