Added CI for building

This commit is contained in:
Phil 2023-08-22 21:02:24 +02:00
parent acfa51e244
commit 6a22a38bc5

40
.drone.yml Normal file
View 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