summaryrefslogtreecommitdiff
path: root/.drone.yml
diff options
context:
space:
mode:
authorsimponic <simponic@hatecomputers.club>2024-04-06 15:43:18 -0400
committersimponic <simponic@hatecomputers.club>2024-04-06 15:43:18 -0400
commit83cc6267fd5ce2f61200314424c5f400f65ff2ba (patch)
treeeafb35310236a15572cbb6e16ff8d6f181bfe240 /.drone.yml
parent569d2788ebfb90774faf361f62bfe7968e091465 (diff)
parentcad8e2c4ed5e3bab61ff243f8677f8a46eaeafb0 (diff)
downloadhatecomputers.club-83cc6267fd5ce2f61200314424c5f400f65ff2ba.tar.gz
hatecomputers.club-83cc6267fd5ce2f61200314424c5f400f65ff2ba.zip
Merge pull request 'testing | dont be recursive for external domains | finalize oauth' (#5) from dont-be-authoritative into main
Reviewed-on: https://git.hatecomputers.club/hatecomputers/hatecomputers.club/pulls/5
Diffstat (limited to '.drone.yml')
-rw-r--r--.drone.yml31
1 files changed, 26 insertions, 5 deletions
diff --git a/.drone.yml b/.drone.yml
index 8f459a1..d056e69 100644
--- a/.drone.yml
+++ b/.drone.yml
@@ -1,9 +1,30 @@
---
kind: pipeline
type: docker
-name: build, publish docker image, deploy
+name: build
steps:
+ - name: run tests
+ image: golang
+ commands:
+ - go build
+ - go test -p 1 -v ./...
+
+trigger:
+ event:
+ - pull_request
+
+---
+kind: pipeline
+type: docker
+name: deploy
+
+steps:
+ - name: run tests
+ image: golang
+ commands:
+ - go build
+ - go test -p 1 -v ./...
- name: docker
image: plugins/docker
settings:
@@ -13,9 +34,6 @@ steps:
from_secret: gitea_packpub_password
registry: git.hatecomputers.club
repo: git.hatecomputers.club/hatecomputers/hatecomputers.club
- tags:
- - latest
- - main
- name: ssh
image: appleboy/drone-ssh
settings:
@@ -27,6 +45,9 @@ steps:
command_timeout: 2m
script:
- systemctl restart docker-compose@hatecomputers-club
+
trigger:
branch:
- - main
+ - main
+ event:
+ - push