Skip to content

Commit

Permalink
update ci
Browse files Browse the repository at this point in the history
  • Loading branch information
daemon1024 committed Jul 8, 2021
1 parent dc73457 commit 3fabe5c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 88 deletions.
85 changes: 0 additions & 85 deletions .github/workflows/go-action.yml

This file was deleted.

13 changes: 10 additions & 3 deletions .github/workflows/go-vagrant.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,16 @@ jobs:
run: ssh-keygen -f $HOME/.ssh/id_rsa.pub -q -N ""

- name: Run vagrant up
run: VAGRANT_LOG=info vagrant up
run: vagrant up
working-directory: contribution/vagrant

- name: Build & Test
run: vagrant ssh -c "export GOPATH=\$HOME/go;export PATH=\$PATH:/usr/local/go/bin:\$HOME/go/bin;export KUBECONFIG=\$HOME/.kube/config;cd KubeArmor/KubeArmor;make clean;make;cd ..;cd tests;nohup kubectl proxy & sleep 1;cat nohup.out;./test-scenarios-local.sh;cat /tmp/kubearmor.test"
- name: Build
run: vagrant ssh -c "export GOPATH=\$HOME/go;export PATH=\$PATH:/usr/local/go/bin:\$HOME/go/bin;export KUBECONFIG=\$HOME/.kube/config;cd KubeArmor/KubeArmor;make clean;make;"
working-directory: contribution/vagrant

- name: Test
run: |
bash -c 'vagrant ssh -c "nohup kubectl proxy & sleep 1;curl 127.0.0.1:8001"' &> /dev/null
vagrant ssh -c "export GOPATH=\$HOME/go;export PATH=\$PATH:/usr/local/go/bin:\$HOME/go/bin;export KUBECONFIG=\$HOME/.kube/config;cd KubeArmor/tests;./test-scenarios-local.sh"
working-directory: contribution/vagrant
shell: bash

0 comments on commit 3fabe5c

Please sign in to comment.