telegram-ollama-reply-bot/.drone.yml
Alexey Skobkin b20c248fd9
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
Adding Dockerfile and adding image building to the Drone pipeline. Also adding running instructions to the README.md.
2024-03-10 05:19:50 +03:00

31 lines
494 B
YAML

kind: pipeline
type: docker
name: build
steps:
- name: build
image: 'golang:alpine'
commands:
- go build -x .
when:
event:
- push
- name: publish-docker
image: plugins/docker
settings:
username:
from_secret: DOCKER_LOGIN
password:
from_secret: DOCKER_TOKEN
repo:
from_secret: DOCKER_REPO
tags:
- ${DRONE_TAG}
- latest
when:
branch:
- main
event:
- tag