Skip to content

Commit f596728

Browse files
Migration to Containerlab (#74)
1 parent c1e321d commit f596728

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+729
-845
lines changed

.github/workflows/master.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,24 @@ jobs:
1010
name: Integration tests
1111
runs-on: self-hosted
1212
steps:
13+
- name: Gain back workspace permissions # https://github.com/actions/checkout/issues/211
14+
run: sudo chown -R $USER:$USER $GITHUB_WORKSPACE
15+
1316
- name: Checkout
1417
uses: actions/checkout@v2
18+
19+
- name: Docker Login
20+
uses: docker/login-action@v1
21+
with:
22+
registry: ${{ secrets.DOCKER_REGISTRY }}
23+
username: ${{ secrets.DOCKER_REGISTRY_USER }}
24+
password: ${{ secrets.DOCKER_REGISTRY_TOKEN }}
25+
26+
- name: Build Docker image
27+
run: |
28+
make build-vms-image
29+
docker push ghcr.io/metal-stack/mini-lab-vms:latest
30+
1531
- name: Run integration tests
1632
shell: bash
1733
run: |

.github/workflows/pr.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,32 @@ jobs:
1010
name: Integration tests for PR
1111
runs-on: self-hosted
1212
steps:
13+
- name: Gain back workspace permissions # https://github.com/actions/checkout/issues/211
14+
run: sudo chown -R $USER:$USER $GITHUB_WORKSPACE
15+
1316
- name: Checkout
1417
uses: actions/checkout@v2
18+
19+
- name: Docker Login
20+
uses: docker/login-action@v1
21+
with:
22+
registry: ${{ secrets.DOCKER_REGISTRY }}
23+
username: ${{ secrets.DOCKER_REGISTRY_USER }}
24+
password: ${{ secrets.DOCKER_REGISTRY_TOKEN }}
25+
26+
- name: Set image name
27+
run: echo "MINI_LAB_VM_IMAGE=ghcr.io/metal-stack/mini-lab-vms:pr-${GITHUB_HEAD_REF##*/}" >> $GITHUB_ENV
28+
29+
- name: Build Docker image
30+
run: |
31+
make build-vms-image
32+
docker push ${MINI_LAB_VM_IMAGE}
33+
1534
- name: Run integration tests
1635
shell: bash
1736
run: |
1837
export TMPDIR=/var/tmp/
38+
export MINI_LAB_VM_IMAGE=ghcr.io/metal-stack/mini-lab-vms:pr-${GITHUB_HEAD_REF##*/}
1939
./test/ci-cleanup.sh
2040
./test/integration.sh
2141
env:

.gitignore

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
1-
.ansible_vagrant_cache
2-
.vagrant_version_host_system
31
.env
42
.idea
53
.kubeconfig
6-
.vagrant
74
**/*.pyc
5+
mini-lab
86
ansible-common
97
metal-hammer*
10-
partition/dynamic_inventory.yaml
118
requirements.yaml

DEV_INSTRUCTIONS.md

Lines changed: 0 additions & 57 deletions
This file was deleted.

0 commit comments

Comments
 (0)