Fix github workflow and deploy yaml #239
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
on: [push, pull_request] | |
name: build | |
jobs: | |
build: | |
strategy: | |
matrix: | |
go-version: [1.20.x, 1.21.x] | |
goarch: [amd64, arm64] | |
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 | |
steps: | |
- name: Install Go | |
uses: actions/setup-go@v2 | |
with: | |
go-version: ${{ matrix.go-version }} | |
- name: Check out code into the Go module directory | |
uses: actions/checkout@v2 | |
- name: Build | |
env: | |
GOARCH: ${{ matrix.goarch }} | |
run: go build -o multi-networkpolicy-iptables_${{ matrix.goarch }} ./cmd/multi-networkpolicy-iptables/ |