summaryrefslogtreecommitdiff
path: root/.drone.yml
diff options
context:
space:
mode:
authorElizabeth <elizabeth@simponic.xyz>2024-04-02 16:36:54 -0600
committerElizabeth <elizabeth@simponic.xyz>2024-04-02 16:36:54 -0600
commit14b450b9c87f391909a80383041844a48b5d77ea (patch)
treec73b0726436a7bbbc4345945ec240a5008eecf5f /.drone.yml
parent07c272b8098b6cefa17280f65b4079e99a18a6c2 (diff)
downloadhatecomputers.club-14b450b9c87f391909a80383041844a48b5d77ea.tar.gz
hatecomputers.club-14b450b9c87f391909a80383041844a48b5d77ea.zip
update parallelism in ci
Diffstat (limited to '.drone.yml')
-rw-r--r--.drone.yml24
1 files changed, 15 insertions, 9 deletions
diff --git a/.drone.yml b/.drone.yml
index 38ed21d..52f3ffa 100644
--- a/.drone.yml
+++ b/.drone.yml
@@ -1,15 +1,26 @@
---
kind: pipeline
type: docker
-name: deployment
+name: build
steps:
- name: run tests
image: golang
commands:
- go build
- - go test -v ./...
+ - go test -p 1 -v ./...
+trigger:
+ event:
+ - pull_request
+ - push
+
+---
+kind: pipeline
+type: docker
+name: build
+
+steps:
- name: docker
image: plugins/docker
settings:
@@ -19,10 +30,6 @@ steps:
from_secret: gitea_packpub_password
registry: git.hatecomputers.club
repo: git.hatecomputers.club/hatecomputers/hatecomputers.club
- when:
- branch:
- - main
-
- name: ssh
image: appleboy/drone-ssh
settings:
@@ -34,10 +41,9 @@ steps:
command_timeout: 2m
script:
- systemctl restart docker-compose@hatecomputers-club
- when:
- branch:
- - main
trigger:
branch:
- main
+ event:
+ - push