Skip to content

Bump k8s.io/api from 0.29.3 to 0.30.0 #109

Bump k8s.io/api from 0.29.3 to 0.30.0

Bump k8s.io/api from 0.29.3 to 0.30.0 #109

Workflow file for this run

name: CI
on:
pull_request:
branches: ['main']
types: ['opened', 'reopened', 'synchronize']
paths:
- 'helm/**'
- 'files/**'
- 'cmd/**'
- 'go.*'
- 'Dockerfile'
- '!helm/Chart.yaml'
- '!helm/README.md'
- '!helm/test/**'
- '!helm/values.*.yaml'
permissions:
contents: read
jobs:
build:
name: Build
runs-on: ${{ matrix.RUNNER }}
strategy:
fail-fast: false
matrix:
include:
- PLATFORM: amd64
RUNNER: self-hosted-amd64-1cpu
- PLATFORM: aarch64
RUNNER: self-hosted-arm64-1cpu
outputs:
helm_args: ${{ steps.compute_helm_args.outputs.helm_args }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Build
run: |
IMAGE="wallarm/sidecar-controller"
make build TAG=${GITHUB_SHA} IMAGE=${IMAGE} PLATFORMS=linux/${{ matrix.PLATFORM }} BUILDX_ARGS=--load
mkdir artifacts
docker save -o artifacts/docker-image-${{ matrix.PLATFORM }}.tar ${IMAGE}:${GITHUB_SHA}
- name: Save artifact
uses: actions/upload-artifact@v3
with:
name: docker-artifact
path: artifacts/docker-image-${{ matrix.PLATFORM }}.tar
retention-days: 1
- name: Compute Helm arguments
#TODO get rid of using helm args here
id: compute_helm_args
run: |
HELM_ARGS="--set controller.image.tag=${GITHUB_SHA}"
echo "helm_args=${HELM_ARGS}" >> $GITHUB_OUTPUT
test:
name: Test
needs: build
uses: wallarm/sidecar/.github/workflows/test.yaml@DE-11 # TODO: fix, tmp, no dynamic resolving here
secrets:
VAULT_URL: ${{ secrets.VAULT_URL }}
VAULT_ROLE: ${{ secrets.VAULT_ROLE }}
with:
ref: ${{ github.head_ref }}
run_lint: true
run_validate: true
run_test: true
run_ct: true
helm_args: ${{ needs.build.outputs.helm_args }}
load_artifact: true