vegapokerbot/.drone.yml

38 lines
812 B
YAML
Raw Normal View History

2024-05-10 12:10:25 +03:00
kind: pipeline
2024-05-10 12:27:14 +03:00
type: docker
2024-05-10 12:10:25 +03:00
name: default
steps:
- name: build and push
2024-05-10 12:27:14 +03:00
image: docker:dind
volumes:
2024-05-10 12:46:45 +03:00
- name: docker.sock
2024-05-10 12:27:14 +03:00
path: /var/run
2024-05-10 12:44:09 +03:00
environment:
CI_REGISTRY:
from_secret: CI_REGISTRY
CI_REGISTRY_USER:
from_secret: CI_REGISTRY_USER
CI_REGISTRY_PASSWORD:
from_secret: CI_REGISTRY_PASSWORD
CI_APP_IMAGE:
from_secret: CI_APP_IMAGE
2024-05-10 12:10:25 +03:00
commands:
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
2024-05-10 12:46:13 +03:00
- docker buildx build --push --platform linux/amd64 --tag $CI_APP_IMAGE --file Dockerfile .
2024-05-10 12:10:25 +03:00
when:
branch:
- master
2024-05-10 12:27:14 +03:00
services:
- name: docker
image: docker:dind
privileged: true
volumes:
2024-05-10 12:46:45 +03:00
- name: docker.sock
2024-05-10 12:27:14 +03:00
path: /var/run
2024-05-10 12:10:25 +03:00
trigger:
event:
- push