Skip to content

Commit 4b4cc3a

Browse files
committed
Add github workfloW
Signed-off-by: peppi-lotta <[email protected]>
1 parent c79d57a commit 4b4cc3a

File tree

6 files changed

+45
-10
lines changed

6 files changed

+45
-10
lines changed
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Quick Start Test
2+
3+
on:
4+
workflow_call:
5+
inputs:
6+
runner:
7+
type: string
8+
default: "ubuntu-latest"
9+
timeout-minutes:
10+
type: number
11+
default: 30
12+
13+
permissions: {}
14+
15+
jobs:
16+
test:
17+
name: Quick Start Test
18+
runs-on: ${{ inputs.runner }}
19+
timeout-minutes: ${{ inputs.timeout-minutes }}
20+
21+
steps:
22+
- uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0
23+
24+
- name: Install libvirt
25+
run: |
26+
sudo apt-get update
27+
sudo apt-get install -y libvirt-daemon-system qemu-kvm virt-manager libvirt-dev
28+
29+
- name: Run Quick Start Test
30+
# We need a new shell to pick up the new group. That is why we do the sudo -s -u $USER ...
31+
# Remove the pre-installed go version. We install the exact version we need.
32+
run: |
33+
sudo usermod -a -G libvirt $USER
34+
sudo ${{ github.workspace }}/hack/quick-start-test/quick-start-test.sh
35+
36+
- name: Upload artifacts
37+
if: ${{ !cancelled() }}
38+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
39+
with:
40+
name: artifacts-${{ inputs.bmc-protocol }}.tar.gz
41+
path: test/quick-start/_artifacts
42+
if-no-files-found: error
43+
overwrite: false

hack/quick-start-test/bml-01.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ metadata:
55
type: Opaque
66
stringData:
77
username: admin #replace with desired username
8-
password: supersecretpassword #replace with desired password
8+
password: password #replace with desired password

hack/quick-start-test/bmo/kustomization.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@ namespace: baremetal-operator-system
88
resources:
99
- https://github.com/metal3-io/baremetal-operator/config/use-irso?ref=main
1010

11-
generatorOptions:
12-
disableNameSuffixHash: true
13-
1411
secretGenerator:
1512
- name: ironic-credentials
1613
namespace: baremetal-operator-system

hack/quick-start-test/irso/ironic.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ metadata:
44
name: ironic
55
namespace: baremetal-operator-system
66
spec:
7-
apiCredentialsName: ironic-credentials
87
networking:
98
dhcp:
109
rangeBegin: "192.168.222.100"

hack/quick-start-test/quick-start-test.sh

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,6 @@ setup() {
3838
echo "${IRONIC_USERNAME}" > "${QUICK_START_BASE}/irso/ironic-username"
3939
echo "${IRONIC_PASSWORD}" > "${QUICK_START_BASE}/irso/ironic-password"
4040

41-
# Replace in the username and password in bml-vm-01.yaml
42-
sed -i "s/username: .*/username: ${IRONIC_USERNAME}/" ${QUICK_START_BASE}/bml-01.yaml
43-
sed -i "s/password: .*/password: ${IRONIC_PASSWORD}/" ${QUICK_START_BASE}/bml-01.yaml
44-
4541
echo "Deploying IrSO..."
4642
# This is deploying a patch where the IPA_BASEURI are set to the local image server.
4743
# This could be replaced with just kubectl apply -f https://github.com/metal3-io/ironic-standalone-operator/releases/latest/download/install.yaml

hack/quick-start-test/setup-virtual-lab.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ virt-install \
5959
--osinfo=ubuntu-lts-latest \
6060
--ram=4096 \
6161
--vcpus=2 \
62-
--disk size=25 \
62+
--disk size=18 \
6363
--boot hd,network \
6464
--import \
6565
--serial file,path="${SERIAL_LOG_PATH}" \

0 commit comments

Comments
 (0)