mirror of
https://github.com/the-second-city/faceclaimer.git
synced 2025-10-29 03:56:02 -07:00
32 lines
534 B
YAML
32 lines
534 B
YAML
skip_clone: true
|
|
when:
|
|
- branch: master
|
|
event: push
|
|
- event: tag
|
|
- event: pull_request
|
|
|
|
steps:
|
|
- name: clone
|
|
image: sh
|
|
commands:
|
|
- git clone "$CI_REPO_CLONE_URL" .
|
|
- git checkout "$CI_COMMIT_SHA"
|
|
|
|
- name: unit tests
|
|
image: sh
|
|
commands:
|
|
- go test ./...
|
|
|
|
- name: build and publish
|
|
image: sh
|
|
commands:
|
|
- go build -o /mnt/build-artifacts/
|
|
|
|
- name: redeploy
|
|
when:
|
|
- branch: master
|
|
event: push
|
|
image: sh
|
|
commands:
|
|
- ssh controller fc-inconnu
|