services/.drone.yml

40 lines
755 B
YAML
Raw Normal View History

2023-08-22 19:02:24 +00:00
---
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