diff options
Diffstat (limited to '.drone.yml')
| -rw-r--r-- | .drone.yml | 31 |
1 files changed, 26 insertions, 5 deletions
@@ -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 |
