Skip to content

build directly multi-arch images #779

build directly multi-arch images

build directly multi-arch images #779

Workflow file for this run

name: validation
on: [push, pull_request]
env:
GO111MODULE: "on"
PROJECTNAME: "watermarkpodautoscaler"
GO_VERSION: 1.19
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Set up Go
uses: actions/setup-go@v1
with:
go-version: ${{ env.GO_VERSION }}
id: go
- name: Install required packages
uses: mstksg/get-package@v1
with:
apt-get: mercurial jq build-essential
- name: Check out code into the Go module directory
uses: actions/checkout@v1
- name: Install tools
run: |
make install-tools
- name: Run build
run: |
make manager
- name: Run unit/control plane tests (fake cluster)
run: |
make test
e2e:
runs-on: ubuntu-latest
strategy:
matrix:
k8s:
- v1.14.10
- v1.16.9
- v1.18.4
- v1.21.1
steps:
- name: Set up Go
uses: actions/setup-go@v1
with:
go-version: ${{ env.GO_VERSION }}
id: go
- name: Install required packages
uses: mstksg/get-package@v1
with:
apt-get: mercurial jq build-essential
- name: Check out code into the Go module directory
uses: actions/checkout@v1
- name: Install tools
run: |
make install-tools
- name: Setup kind for e2e - kube ${{ matrix.k8s }}
uses: helm/[email protected]
with:
config: test/cluster-kind.yaml
cluster_name: wpa-e2e-test
- name: Run e2e tests - kube ${{ matrix.k8s }}
run: |
export PATH=$PATH:$(pwd)/bin
kubectl cluster-info --context kind-wpa-e2e-test
kubectl get pods -n kube-system
make e2e