Restructured multus to use Go standard project layout.

This commit is contained in:
Nikhil Simha
2020-05-28 16:43:59 -04:00
committed by Tomofumi Hayashi
parent bd9f2e9700
commit 62abb002dd
43 changed files with 326 additions and 155 deletions

View File

@@ -18,16 +18,16 @@ jobs:
uses: actions/checkout@v2
- name: Build latest-amd64
run: docker build -t ${REPOSITORY}:latest-amd64 .
run: docker build -t ${REPOSITORY}:latest-amd64 -f deployments/Dockerfile .
- name: Build latest-ppc64le
run: docker build -t ${REPOSITORY}:latest-ppc64le -f Dockerfile.ppc64le .
run: docker build -t ${REPOSITORY}:latest-ppc64le -f deployments/Dockerfile.ppc64le .
- name: Build latest-arm64v8
run: docker build -t ${REPOSITORY}:latest-arm64v8 -f Dockerfile.arm64 .
run: docker build -t ${REPOSITORY}:latest-arm64v8 -f deployments/Dockerfile.arm64 .
- name: Build latest-origin
run: docker build -t ${REPOSITORY}:latest-origin -f Dockerfile.openshift .
run: docker build -t ${REPOSITORY}:latest-origin -f deployments/Dockerfile.openshift .
- name: Tag snapshot
run: |

View File

@@ -18,16 +18,16 @@ jobs:
uses: actions/checkout@v2
- name: Build latest-amd64
run: docker build -t ${REPOSITORY}:latest-amd64 .
run: docker build -t ${REPOSITORY}:latest-amd64 -f deployments/Dockerfile .
- name: Build latest-ppc64le
run: docker build -t ${REPOSITORY}:latest-ppc64le -f Dockerfile.ppc64le .
run: docker build -t ${REPOSITORY}:latest-ppc64le -f deployments/Dockerfile.ppc64le .
- name: Build latest-arm64v8
run: docker build -t ${REPOSITORY}:latest-arm64v8 -f Dockerfile.arm64 .
run: docker build -t ${REPOSITORY}:latest-arm64v8 -f deployments/Dockerfile.arm64 .
- name: Build latest-origin
run: docker build -t ${REPOSITORY}:latest-origin -f Dockerfile.openshift .
run: docker build -t ${REPOSITORY}:latest-origin -f deployments/Dockerfile.openshift .
- name: Tag stable
run: |

View File

@@ -13,10 +13,10 @@ jobs:
uses: actions/checkout@v2
- name: Build latest-amd64
run: docker build -t ${REPOSITORY}:latest-amd64 .
run: docker build -t ${REPOSITORY}:latest-amd64 -f deployments/Dockerfile .
- name: Build latest-ppc64le
run: docker build -t ${REPOSITORY}:latest-ppc64le -f Dockerfile.ppc64le .
run: docker build -t ${REPOSITORY}:latest-ppc64le -f deployments/Dockerfile.ppc64le .
- name: Build latest-origin
run: docker build -t ${REPOSITORY}:latest-origin -f Dockerfile.openshift .
run: docker build -t ${REPOSITORY}:latest-origin -f deployments/Dockerfile.openshift .

View File

@@ -22,4 +22,4 @@ jobs:
uses: actions/checkout@v2
- name: Build
run: GOARCH="${TARGET}" ./build
run: GOARCH="${TARGET}" ./hack/build-go.sh

View File

@@ -22,4 +22,4 @@ jobs:
uses: actions/checkout@v2
- name: Build
run: GOARCH="${TARGET}" ./build
run: GOARCH="${TARGET}" ./hack/build-go.sh

View File

@@ -37,10 +37,10 @@ jobs:
run: go vet ./...
- name: Build
run: GOARCH="${TARGET}" ./build
run: GOARCH="${TARGET}" ./hack/build-go.sh
- name: Go test
run: sudo ./test.sh
run: sudo ./hack/test-go.sh
- name: goveralls
uses: shogo82148/actions-goveralls@v1

View File

@@ -16,7 +16,7 @@ jobs:
run: docker run -d --restart=always -p "5000:5000" --name "kind-registry" registry:2
- name: Build latest-amd64
run: docker build -t localhost:5000/multus:e2e .
run: docker build -t localhost:5000/multus:e2e -f deployments/Dockerfile .
- name: Push to local registry
run: docker push localhost:5000/multus:e2e