forked from os-autoinst/os-autoinst-needles-opensuse
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
24 lines (22 loc) · 855 Bytes
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
image: registry.opensuse.org/opensuse/leap:latest
stages:
- mirror
mirror-from-github:
retry: 2
stage: mirror
rules:
- if: $TOKEN
before_script:
- source /etc/os-release && zypper ar http://download.suse.de/ibs/SUSE:/CA/openSUSE_Leap_${VERSION}/SUSE:CA.repo
- |
for i in {1..3}; do
zypper -n in git ca-certificates-suse && zypper ref && break
sleep 1
done
script:
- git config user.email "[email protected]"
- git config user.name "Your Name"
- git remote add github https://github.com/os-autoinst/os-autoinst-needles-opensuse
- git fetch github master:gmaster
- git remote set-url origin https://gitlab:${TOKEN}@gitlab.suse.de/openqa/os-autoinst-needles-opensuse-mirror.git
- git push -f origin gmaster:master