Skip to content

Commit

Permalink
Migration to Containerlab (#74)
Browse files Browse the repository at this point in the history
  • Loading branch information
GrigoriyMikhalkin authored Nov 12, 2021
1 parent c1e321d commit f596728
Show file tree
Hide file tree
Showing 45 changed files with 729 additions and 845 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/master.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,24 @@ jobs:
name: Integration tests
runs-on: self-hosted
steps:
- name: Gain back workspace permissions # https://github.com/actions/checkout/issues/211
run: sudo chown -R $USER:$USER $GITHUB_WORKSPACE

- name: Checkout
uses: actions/checkout@v2

- name: Docker Login
uses: docker/login-action@v1
with:
registry: ${{ secrets.DOCKER_REGISTRY }}
username: ${{ secrets.DOCKER_REGISTRY_USER }}
password: ${{ secrets.DOCKER_REGISTRY_TOKEN }}

- name: Build Docker image
run: |
make build-vms-image
docker push ghcr.io/metal-stack/mini-lab-vms:latest
- name: Run integration tests
shell: bash
run: |
Expand Down
20 changes: 20 additions & 0 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,32 @@ jobs:
name: Integration tests for PR
runs-on: self-hosted
steps:
- name: Gain back workspace permissions # https://github.com/actions/checkout/issues/211
run: sudo chown -R $USER:$USER $GITHUB_WORKSPACE

- name: Checkout
uses: actions/checkout@v2

- name: Docker Login
uses: docker/login-action@v1
with:
registry: ${{ secrets.DOCKER_REGISTRY }}
username: ${{ secrets.DOCKER_REGISTRY_USER }}
password: ${{ secrets.DOCKER_REGISTRY_TOKEN }}

- name: Set image name
run: echo "MINI_LAB_VM_IMAGE=ghcr.io/metal-stack/mini-lab-vms:pr-${GITHUB_HEAD_REF##*/}" >> $GITHUB_ENV

- name: Build Docker image
run: |
make build-vms-image
docker push ${MINI_LAB_VM_IMAGE}
- name: Run integration tests
shell: bash
run: |
export TMPDIR=/var/tmp/
export MINI_LAB_VM_IMAGE=ghcr.io/metal-stack/mini-lab-vms:pr-${GITHUB_HEAD_REF##*/}
./test/ci-cleanup.sh
./test/integration.sh
env:
Expand Down
5 changes: 1 addition & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
.ansible_vagrant_cache
.vagrant_version_host_system
.env
.idea
.kubeconfig
.vagrant
**/*.pyc
mini-lab
ansible-common
metal-hammer*
partition/dynamic_inventory.yaml
requirements.yaml
57 changes: 0 additions & 57 deletions DEV_INSTRUCTIONS.md

This file was deleted.

Loading

0 comments on commit f596728

Please sign in to comment.