Install EKS Pod Identity Agent on Test clusters for CNI to use IRSAV2 #939
Workflow file for this run
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
name: Build and test operator images on push to every branch except main and pull requests | |
on: | |
pull_request: | |
branches: [main] | |
push: | |
branches-ignore: [main] | |
workflow_dispatch: {} | |
jobs: | |
build-test-operator: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/cache@v2 | |
with: | |
path: | | |
~/.cache/go-build | |
~/go/pkg/mod | |
~/go/bin/ | |
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | |
restore-keys: | | |
${{ runner.os }}-go- | |
- uses: actions/setup-go@v2 | |
with: | |
go-version: '1.17.1' | |
- name: Build & Test | |
run: | | |
echo "/usr/local/kubebuilder/bin" >> $GITHUB_PATH | |
make toolchain build test | |
working-directory: operator | |
build-cli: | |
strategy: | |
matrix: | |
os: ["darwin", "linux"] | |
arch: ["amd64"] | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/cache@v2 | |
with: | |
path: | | |
~/.cache/go-build | |
~/go/pkg/mod | |
~/go/bin/ | |
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | |
restore-keys: | | |
${{ runner.os }}-go- | |
- uses: actions/setup-go@v2 | |
with: | |
go-version: '1.17.1' | |
- name: Build the KIT CLI | |
run: | | |
GOOS=${{ matrix.os }} GOARCH=${{ matrix.arch }} go build -o ./bin/kitctl ./cmd/kitctl/ | |
working-directory: substrate |