forked from Silverfish/proton-bridge
Merge branch 'devel' into 'master'
mirror repo See merge request go/bridge!3
This commit is contained in:
@ -21,6 +21,7 @@ stages:
|
|||||||
- cache
|
- cache
|
||||||
- test
|
- test
|
||||||
- build
|
- build
|
||||||
|
- mirror
|
||||||
|
|
||||||
# Stage: IMAGE
|
# Stage: IMAGE
|
||||||
|
|
||||||
@ -107,3 +108,32 @@ build-linux:
|
|||||||
paths:
|
paths:
|
||||||
- bridge_*.tgz
|
- bridge_*.tgz
|
||||||
expire_in: 2 week
|
expire_in: 2 week
|
||||||
|
|
||||||
|
mirror-repo:
|
||||||
|
stage: mirror
|
||||||
|
only:
|
||||||
|
refs:
|
||||||
|
- master
|
||||||
|
script:
|
||||||
|
- |
|
||||||
|
cat <<EOF > ~/.ssh/config
|
||||||
|
Host github.com
|
||||||
|
Hostname ssh.github.com
|
||||||
|
User git
|
||||||
|
Port 443
|
||||||
|
ProxyCommand connect-proxy -H $http_proxy %h %p
|
||||||
|
EOF
|
||||||
|
- ssh-keyscan -t rsa ${CI_SERVER_HOST} > ~/.ssh/known_hosts
|
||||||
|
- |
|
||||||
|
cat <<EOF >> ~/.ssh/known_hosts
|
||||||
|
# ssh.github.com:443 SSH-2.0-babeld-2e9d163d
|
||||||
|
[ssh.github.com]:443 ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAq2A7hRGmdnm9tUDbO9IDSwBK6TbQa+PXYPCPy6rbTrTtw7PHkccKrpp0yVhp5HdEIcKr6pLlVDBfOLX9QUsyCOV0wzfjIJNlGEYsdlLJizHhbn2mUjvSAHQqZETYP81eFzLQNnPHt4EVVUh7VfDESU84KezmD5QlWpXLmvU31/yMf+Se8xhHTvKSCZIFImWwoG6mbUoWf9nzpIoaSjB+weqqUUmpaaasXVal72J+UX2B+2RPW3RcT0eOzQgqlJL3RKrTJvdsjE3JEAvGq3lGHSZXy28G3skua2SmVi/w4yCE6gbODqnTWlg7+wC604ydGXA8VJiS5ap43JXiUFFAaQ==
|
||||||
|
EOF
|
||||||
|
- echo "$mirror_key" | tr -d '\r' | ssh-add - > /dev/null
|
||||||
|
- ssh-add -l
|
||||||
|
- git clone "$CI_REPOSITORY_URL" --branch master _REPO_CLONE;
|
||||||
|
- cd _REPO_CLONE
|
||||||
|
- git remote add public $mirror_url
|
||||||
|
- git push public master
|
||||||
|
# Pushing the latest tag from master history
|
||||||
|
- git push public "$(git describe --tags --abbrev=0 || echo master)"
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
FROM gitlab.protontech.ch:4567/protonmail/ci-containers/go
|
FROM gitlab.protontech.ch:4567/protonmail/ci-containers/go
|
||||||
|
|
||||||
RUN apt-get -y update
|
RUN apt-get -y update
|
||||||
RUN apt-get -y install openssh-client libsecret-1-dev libgl1-mesa-dev time
|
RUN apt-get -y install openssh-client libsecret-1-dev libgl1-mesa-dev time connect-proxy
|
||||||
|
|||||||
Reference in New Issue
Block a user