lunch-go/.drone.yml

46 lines
762 B
YAML
Raw Normal View History

2023-08-25 11:45:56 +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
# image: docker:dind
# volumes:
# - name: dockersock
# path: /var/run
# commands:
# - docker build -f Dockerfile .
#
#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:45:56 +00:00
- echo "$DOCKER_USERNAME"
2023-08-25 11:36:48 +00:00
- echo "$DOCKER_PASSWORD" | docker login "docker.zvon.tech" --username "$DOCKER_USERNAME" --password-stdin