1
0
Fork 0
mirror of https://github.com/dirtbags/moth.git synced 2025-01-19 05:14:52 -07:00
moth/.gitlab-ci.yml
2021-10-20 14:35:21 -06:00

23 lines
393 B
YAML

stages:
- test
- push
test:
stage: test
image: golang:1.17
only:
refs:
- main
- merge_requests
script:
- go test ./...
push:
stage: push
rules:
- if: $CI_COMMIT_TAG
- if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH'
script:
- mkdir ~/.docker
- echo "$DOCKER_AUTH_CONFIG" | tee ~/.docker/config.json | md5sum
- sh build/ci/ci.sh publish