kind: pipeline type: docker name: default steps: - name: testing # Module build: the go.mod pins the dependencies, so there is no go get and # no GOPATH layout to maintain. 1.12 could not compile io.Discard. image: golang:1.22-alpine commands: - export CGO_ENABLED=0 - go build ./... - go test ./... - name: publish image: plugins/docker settings: repo: registry.stuifzandapp.com/websub-hub registry: registry.stuifzandapp.com username: from_secret: docker_username password: from_secret: docker_password - name: deploy image: appleboy/drone-ssh settings: host: hub.stuifzandapp.com username: hub ssh_key: from_secret: ssh_key script: - cd /home/hub/hub - docker-compose pull hub - docker-compose up -d # - name: notify # image: plugins/webhook # settings: # debug: true # secrets: # - source: result_webhook # target: plugin_urls