Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
I
init
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MyCard
init
Commits
90157e93
Commit
90157e93
authored
Jun 21, 2022
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rework CI
parent
66735d47
Pipeline
#14120
canceled with stage
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
16 deletions
+30
-16
.gitlab-ci.yml
.gitlab-ci.yml
+29
-16
tests/inventory.yaml
tests/inventory.yaml
+1
-0
No files found.
.gitlab-ci.yml
View file @
90157e93
...
...
@@ -5,23 +5,36 @@ variables:
GIT_DEPTH
:
"
1"
DEBIAN_FRONTEND
:
noninteractive
before_script
:
-
apt update && apt -y install python3-pip tar wget openssh-client openssh-server rsync || dnf -y install python3-pip tar wget openssh openssh-server rsync || yum -y install python3-pip tar wget openssh-client openssh-server rsync
-
ssh-keygen -q -t rsa -N '' -f ~/.ssh/id_rsa <<<y 2>&1 >/dev/null
-
cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
-
pip3 install -U pip -i https://mirrors.aliyun.com/pypi/simple/
-
pip install -U ansible==2.9 -i https://mirrors.aliyun.com/pypi/simple/
-
ansible --version
-
wget -O - https://minio.mycard.moe:9000/nanahira/mitogen-0.2.9.tar.gz | tar zxvf -
-
cp tests/ansible.cfg .
-
chmod 700 .
vm
:
.base
:
stage
:
test
tags
:
-
vc
image
:
debian:buster
script
:
-
systemctl start sshd
-
apt update && apt -y install python3-pip tar wget || dnf -y install python3-pip tar wget || yum -y install python3-pip tar wget
-
pip3 install -U pip -i https://mirrors.aliyun.com/pypi/simple/
-
pip install -U ansible==2.9 jinja2==3.0 -i https://mirrors.aliyun.com/pypi/simple/
-
ansible --version
-
wget -O - https://minio.mycard.moe:9000/nanahira/mitogen-0.2.9.tar.gz | tar zxvf -
-
cp tests/ansible.cfg .
-
chmod 700 .
-
ansible-playbook tests/test.yml --syntax-check
-
ansible-playbook tests/test.yml
debian
:
extends
:
.base
image
:
debian:bullseye
ubuntu
:
extends
:
.base
image
:
ubuntu:jammy
centos7
:
extends
:
.base
image
:
centos:7
centos8
:
extends
:
.base
image
:
centos:8
fedora
:
extends
:
.base
image
:
fedora:latest
tests/inventory.yaml
View file @
90157e93
...
...
@@ -17,3 +17,4 @@
china_mirror_omf
:
true
hosts
:
localhost
:
ansible_connection
:
local
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