hatecomputers.club/.drone.yml

56 lines
1.0 KiB
YAML
Raw Normal View History

2024-03-26 18:00:05 -04:00
---
kind: pipeline
type: docker
2024-04-02 18:36:54 -04:00
name: build
2024-03-26 18:00:05 -04:00
steps:
2024-04-02 18:32:03 -04:00
- name: run tests
image: golang
commands:
2024-10-14 22:36:32 -04:00
- go build -i
2024-04-02 18:36:54 -04:00
- go test -p 1 -v ./...
2024-04-02 18:32:03 -04:00
2024-04-02 18:36:54 -04:00
trigger:
event:
2024-04-02 22:26:24 -04:00
- pull_request
2024-04-02 18:36:54 -04:00
---
kind: pipeline
type: docker
2024-04-02 18:38:48 -04:00
name: deploy
2024-04-02 18:36:54 -04:00
steps:
2024-04-02 22:26:24 -04:00
- name: run tests
image: golang
commands:
- go build
- go test -p 1 -v ./...
- name: docker
image: plugins/docker
settings:
username:
from_secret: gitea_packpub_username
password:
from_secret: gitea_packpub_password
registry: git.hatecomputers.club
repo: git.hatecomputers.club/hatecomputers/hatecomputers.club
- name: ssh
image: appleboy/drone-ssh
settings:
host: hatecomputers.club
username: root
key:
from_secret: cd_ssh_key
port: 22
command_timeout: 2m
script:
2024-08-17 18:39:28 -04:00
- cd /etc/docker/compose/hatecomputers-club
- docker compose pull
- systemctl restart docker-compose@hatecomputers-club
2024-04-02 18:32:03 -04:00
2024-03-26 18:00:05 -04:00
trigger:
branch:
2024-04-02 18:32:03 -04:00
- main
2024-04-02 18:36:54 -04:00
event:
- push