-
Notifications
You must be signed in to change notification settings - Fork 584
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #611 from yoheiueda/s390x
Add s390x support
- Loading branch information
Showing
8 changed files
with
213 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name: Go-build-s390x | ||
on: [push, pull_request] | ||
jobs: | ||
|
||
build: | ||
name: Build and test | ||
runs-on: ubuntu-latest | ||
if: > | ||
(( github.event.pull_request.head.repo.owner.login != github.event.pull_request.base.repo.owner.login ) && | ||
github.event_name == 'pull_request' ) || (github.event_name == 'push' && github.event.commits != '[]' ) | ||
env: | ||
GO111MODULE: on | ||
TARGET: s390x | ||
steps: | ||
- name: Set up Go 1.13 | ||
uses: actions/setup-go@v1 | ||
with: | ||
go-version: 1.13 | ||
id: go | ||
|
||
- name: Check out code into the Go module directory | ||
uses: actions/checkout@v2 | ||
|
||
- name: Build | ||
run: GOARCH="${TARGET}" ./hack/build-go.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# This Dockerfile is used to build the image available on DockerHub | ||
FROM golang:1.13 as build | ||
|
||
# Add everything | ||
ADD . /usr/src/multus-cni | ||
|
||
ENV GOARCH "s390x" | ||
ENV GOOS "linux" | ||
|
||
RUN cd /usr/src/multus-cni && \ | ||
./hack/build-go.sh | ||
|
||
# build s390x container | ||
FROM s390x/python:3-slim | ||
COPY --from=build /usr/src/multus-cni /usr/src/multus-cni | ||
WORKDIR / | ||
ADD ./images/entrypoint.sh / | ||
|
||
ENTRYPOINT ["/entrypoint.sh"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters