lunch-go/.drone.yml

45 lines
702 B
YAML
Raw Normal View History

2023-08-25 11:04:22 +00:00
---
kind: pipeline
type: kubernetes
name: build
platform:
os: linux
arch: amd64
steps:
- name: formatting-check
image: golang
commands:
- test -z $(gofmt -l .)
- name: build
2023-08-25 11:35:11 +00:00
image: docker:dind
volumes:
- name: dockersock
path: /var/run
2023-08-25 11:04:22 +00:00
commands:
2023-08-25 11:31:48 +00:00
- docker build -f Dockerfile .
2023-08-25 11:35:11 +00:00
services:
- name: docker
image: docker:dind
privileged: true
volumes:
- name: dockersock
path: /var/run
volumes:
- name: dockersock
temp: {}
2023-08-25 11:04:22 +00:00
---
kind: pipeline
type: kubernetes
name: deploy
platform:
os: linux
arch: amd64
steps:
- name: build
image: docker
commands:
2023-08-25 11:36:48 +00:00
- echo "$DOCKER_PASSWORD" | docker login "docker.zvon.tech" --username "$DOCKER_USERNAME" --password-stdin