From 4ca7ca7b11400f63ef46c9b7f0e93aaefbd67fba Mon Sep 17 00:00:00 2001 From: Fedor Korotkiy Date: Sat, 1 Feb 2020 03:35:28 +0300 Subject: [PATCH] Automatic push to public repo. --- .releaser-ci.yml | 36 ++++++++++++++++++++++++++++-------- 1 file changed, 28 insertions(+), 8 deletions(-) diff --git a/.releaser-ci.yml b/.releaser-ci.yml index 128c150..8675284 100644 --- a/.releaser-ci.yml +++ b/.releaser-ci.yml @@ -1,10 +1,17 @@ +stages: + - test + - deplog + - push + check: + stage: test image: eu.gcr.io/shad-ts/grader/go-build script: - go test -tags private,solution ./... - go test -race -tags private,solution ./... rebuild-base-image: + stage: test only: - master tags: @@ -14,15 +21,8 @@ rebuild-base-image: - 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 -update-task-list: - only: - - master - tags: - - docker - script: - - curl -F token=$TESTER_TOKEN https://go.manytask.org/api/sync_task_columns - deploy: + stage: deploy only: - master tags: @@ -31,3 +31,23 @@ deploy: - 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 + +update-task-list: + stage: push + only: + - master + tags: + - docker + script: + - curl -F token=$TESTER_TOKEN https://go.manytask.org/api/sync_task_columns + +push-to-public: + stage: push + image: eu.gcr.io/shad-ts/grader/go + only: + - master + script: + - git remote add public https://prime:${CI_PUSH_TOKEN}@gitlab.com/slon/shad-go.git + - git config --global user.email 'prime@yandex-team.ru' + - git config --global user.name 'Fedor Korotkiy' + - testtool export --push