services/.drone.yml

40 lines
753 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
2023-08-22 19:03:36 +00:00
- echo $DOCKER_PASSWORD | docker login --username Phil --password-stdin git.hackmi.ch
2023-08-22 19:02:24 +00:00
- 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