Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Nest
Gentoo
Stage 3
Commits
601bff03
Commit
601bff03
authored
Dec 02, 2020
by
James T. Lee
Browse files
CI: Snapshot Portage
parent
05cbf3d2
Pipeline
#37
canceled with stage
in 1 minute and 50 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
6 deletions
+26
-6
.gitlab-ci.yml
.gitlab-ci.yml
+26
-6
No files found.
.gitlab-ci.yml
View file @
601bff03
...
...
@@ -5,11 +5,31 @@ default:
stages
:
-
'
sync'
'
Sync
gentoo/stage3:amd64-systemd'
:
# 'Sync gentoo/stage3:amd64-systemd':
# stage: 'sync'
# tags: ['docker']
# script:
# - 'docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY'
# - 'docker pull gentoo/stage3:amd64-systemd'
# - 'docker tag gentoo/stage3:amd64-systemd $CI_REGISTRY_IMAGE:amd64-systemd'
# - 'docker push $CI_REGISTRY_IMAGE:amd64-systemd'
'
Snapshot
Portage'
:
image
:
'
ubuntu'
stage
:
'
sync'
tags
:
[
'
docker'
]
script
:
-
'
docker
login
-u
$CI_REGISTRY_USER
-p
$CI_REGISTRY_PASSWORD
$CI_REGISTRY'
-
'
docker
pull
gentoo/stage3:amd64-systemd'
-
'
docker
tag
gentoo/stage3:amd64-systemd
$CI_REGISTRY_IMAGE:amd64-systemd'
-
'
docker
push
$CI_REGISTRY_IMAGE:amd64-systemd'
-
'
apt-get
update'
-
'
apt-get
install
-y
git
openssh-client
rsync'
-
'
git
config
--global
user.name
"Nest
CI"'
-
'
git
config
--global
user.email
nest@james.tl'
-
'
eval
$(ssh-agent
-s)'
-
'
echo
"$SSH_PRIVATE_KEY"
|
ssh-add
-'
-
'
mkdir
-p
~/.ssh'
-
'
chmod
700
~/.ssh'
-
'
echo
"$SSH_KNOWN_HOSTS"
>>
~/.ssh/known_hosts'
-
'
git
clone
git@gitlab.james.tl:nest/gentoo/portage.git'
-
'
cd
portage'
-
'
rsync
-a
--progress
--delete
--exclude=.git
rsync://rsync.us.gentoo.org/gentoo-portage/
.'
-
'
git
add
.'
-
'
git
commit
-m
"Snapshot"'
-
'
git
push'
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment