shad-go/.releaser-ci.yml

49 lines
1.2 KiB
YAML
Raw Normal View History

2020-01-31 19:03:57 +00:00
check:
image: eu.gcr.io/shad-ts/grader/go-build
script:
- go test -tags private,solution ./...
- go test -race -tags private,solution ./...
rebuild-base-image:
only:
- master
tags:
- docker
when: manual
script:
- docker build -f build.docker -t eu.gcr.io/shad-ts/grader/go-build .
- docker push eu.gcr.io/shad-ts/grader/go-build:latest
2020-02-01 00:35:28 +00:00
deploy:
2020-01-31 19:03:57 +00:00
only:
- master
tags:
- docker
script:
2020-02-01 00:35:28 +00:00
- docker pull eu.gcr.io/shad-ts/grader/go-build:latest
- docker build -f testenv.docker -t eu.gcr.io/shad-ts/grader/go .
- docker push eu.gcr.io/shad-ts/grader/go:latest
2020-02-01 00:35:28 +00:00
update-task-list:
only:
- master
tags:
- docker
script:
2020-02-01 00:35:28 +00:00
- curl -F token=$TESTER_TOKEN https://go.manytask.org/api/sync_task_columns
push-to-public:
2020-02-01 00:37:41 +00:00
stage: .post
2020-02-01 00:35:28 +00:00
image: eu.gcr.io/shad-ts/grader/go
only:
- master
script:
2020-02-01 00:54:20 +00:00
- git remote rm public || true
2020-02-01 00:52:09 +00:00
- git remote add -f public https://prime:${CI_PUSH_TOKEN}@gitlab.com/slon/shad-go.git
2020-02-01 00:35:28 +00:00
- git config --global user.email 'prime@yandex-team.ru'
- git config --global user.name 'Fedor Korotkiy'
2020-02-01 00:46:34 +00:00
- git fetch public
2020-02-01 00:54:20 +00:00
- git branch -D public || true
2020-02-01 00:46:34 +00:00
- git branch public public/master
2020-02-01 00:35:28 +00:00
- testtool export --push