Skip to content

Commit 429c6cf

Browse files
committed
[actions] add vagrant deploy job in the interim
1 parent df9ec5b commit 429c6cf

File tree

1 file changed

+51
-0
lines changed

1 file changed

+51
-0
lines changed

.github/workflows/ci.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
---
2+
name: CI
3+
4+
"on":
5+
pull_request: {}
6+
push:
7+
branches: ["main"]
8+
9+
concurrency:
10+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
11+
cancel-in-progress: true
12+
13+
defaults:
14+
run:
15+
shell: bash
16+
17+
permissions:
18+
contents: read
19+
20+
jobs:
21+
vagrant-deploy:
22+
runs-on: ubuntu-24.04
23+
steps:
24+
- uses: actions/checkout@v4
25+
- run: pip install jmespath netaddr
26+
- run: ansible-galaxy install geerlingguy.ntp
27+
- name: setup vagrant
28+
run: |
29+
# Copyright The containerd Authors
30+
#
31+
# Licensed under the Apache License, Version 2.0 (the "License");
32+
# you may not use this file except in compliance with the License.
33+
# You may obtain a copy of the License at
34+
#
35+
# http://www.apache.org/licenses/LICENSE-2.0
36+
#
37+
# Unless required by applicable law or agreed to in writing, software
38+
# distributed under the License is distributed on an "AS IS" BASIS,
39+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
40+
# See the License for the specific language governing permissions and
41+
# limitations under the License.
42+
curl -fsSL https://apt.releases.hashicorp.com/gpg | sudo gpg --dearmor -o /usr/share/keyrings/hashicorp-archive-keyring.gpg
43+
echo "deb [signed-by=/usr/share/keyrings/hashicorp-archive-keyring.gpg] https://apt.releases.hashicorp.com $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/hashicorp.list
44+
sudo sed -i 's/^# deb-src/deb-src/' /etc/apt/sources.list
45+
sudo apt-get update
46+
sudo apt-get install -y libvirt-daemon libvirt-daemon-system vagrant
47+
sudo systemctl enable --now libvirtd
48+
sudo apt-get build-dep -y vagrant ruby-libvirt
49+
sudo apt-get install -y --no-install-recommends libxslt-dev libxml2-dev libvirt-dev ruby-bundler ruby-dev zlib1g-dev
50+
sudo vagrant plugin install vagrant-libvirt
51+
- run: sudo vagrant up --no-tty

0 commit comments

Comments
 (0)