CI: push master-expurged
to tezos/tezos
.
This commit is contained in:
parent
ebcc63aefb
commit
c9fdaf13ec
@ -11,6 +11,7 @@ stages:
|
|||||||
- build
|
- build
|
||||||
- build_test
|
- build_test
|
||||||
- test
|
- test
|
||||||
|
- expurge
|
||||||
- publish
|
- publish
|
||||||
- cleanup
|
- cleanup
|
||||||
|
|
||||||
@ -105,15 +106,15 @@ test:data-encoding:
|
|||||||
- build
|
- build
|
||||||
- build:test
|
- build:test
|
||||||
|
|
||||||
publish:expurge:
|
expurge:
|
||||||
stage: publish
|
stage: expurge
|
||||||
tags:
|
tags:
|
||||||
- tezos_builder
|
- tezos_builder
|
||||||
only:
|
only:
|
||||||
- master@tezos/tezos
|
- master@tezos/tezos
|
||||||
script:
|
script:
|
||||||
- echo "${CI_KH}" > ~/.ssh/known_hosts
|
- echo "${CI_KH}" > ~/.ssh/known_hosts
|
||||||
- echo "${CI_PK}" > ~/.ssh/id_rsa
|
- echo "${CI_PK_GITLAB}" > ~/.ssh/id_rsa
|
||||||
- chmod 400 ~/.ssh/id_rsa
|
- chmod 400 ~/.ssh/id_rsa
|
||||||
- rm -fr .git/refs/original
|
- rm -fr .git/refs/original
|
||||||
- git filter-branch --prune-empty --index-filter
|
- git filter-branch --prune-empty --index-filter
|
||||||
@ -141,14 +142,12 @@ publish:github:
|
|||||||
- tezos_builder
|
- tezos_builder
|
||||||
only:
|
only:
|
||||||
- master@tezos/tezos
|
- master@tezos/tezos
|
||||||
when: manual
|
|
||||||
script:
|
script:
|
||||||
- echo "${CI_KH}" > ~/.ssh/known_hosts
|
- echo "${CI_KH}" > ~/.ssh/known_hosts
|
||||||
- echo "${CI_PK}" > ~/.ssh/id_rsa
|
- echo "${CI_PK_GITHUB}" > ~/.ssh/id_rsa
|
||||||
- chmod 400 ~/.ssh/id_rsa
|
- chmod 400 ~/.ssh/id_rsa
|
||||||
- git reset ${CI_BUILD_REF}_expurged
|
- git reset ${CI_BUILD_REF}_expurged
|
||||||
- git push git@github.com:OCamlPro/tezos.git
|
- git push git@github.com:tezos/tezos.git -f HEAD:master
|
||||||
-f HEAD:master
|
|
||||||
|
|
||||||
cleanup:
|
cleanup:
|
||||||
stage: cleanup
|
stage: cleanup
|
||||||
|
Loading…
Reference in New Issue
Block a user