.gitlab-ci.yml (505B)
1 stages: 2 - verify 3 - deploy 4 5 verify: 6 stage: verify 7 image: golang:1.23 8 script: 9 - go run ./cmd/buildjs 10 - go test ./... 11 only: 12 - master 13 14 deploy: 15 stage: deploy 16 needs: 17 - verify 18 image: 19 name: curlimages/curl:8.8.0 20 entrypoint: [""] 21 script: 22 - | 23 curl --fail --show-error --silent -X POST "${DOKPLOY_DEPLOY_URL}" \ 24 -H "Content-Type: application/json" \ 25 -H "X-Gitlab-Event: Push Hook" \ 26 -d '{"ref": "refs/heads/master"}' 27 only: 28 - master