Commit 71d83e3f authored by James T. Lee's avatar James T. Lee
Browse files

CI: Snapshot Portage

parent 05cbf3d2
Pipeline #36 canceled with stage
in 1 minute and 45 seconds
......@@ -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 -av --progress --delete rsync://rsync.us.gentoo.org/gentoo-portage/ .'
- 'git add .'
- 'git commit -m "Snapshot"'
- 'git push'
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment