Skip to content

Commit

Permalink
ci: add GitHub Workflow for building container-images
Browse files Browse the repository at this point in the history
Test building container images, so that Mergify can require
`build_controller` and `build_sidecar` as CI jobs.

Signed-off-by: Niels de Vos <[email protected]>
  • Loading branch information
nixpanic authored and mergify[bot] committed Dec 22, 2021
1 parent 9f3dccb commit fa78cb4
Showing 1 changed file with 52 additions and 0 deletions.
52 changes: 52 additions & 0 deletions .github/workflows/test-build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
---
name: Test building container images

on:
pull_request:
branches:
- "*"

jobs:
build_controller:
name: Build controller container image
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v2

- name: Set up QEMU
uses: docker/setup-qemu-action@v1

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1

- name: Build container container image
uses: docker/build-push-action@v2
with:
context: .
file: Dockerfile
platforms: linux/amd64,linux/arm64,linux/ppc64le,linux/s390x,linux/arm/v7
push: false
tags: quay.io/csi-addons/k8s-controller:latest

build_sidecar:
name: Test sidecar container image
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v2

- name: Set up QEMU
uses: docker/setup-qemu-action@v1

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1

- name: Build sidecar container image
uses: docker/build-push-action@v2
with:
context: .
file: build/Containerfile.sidecar
platforms: linux/amd64,linux/arm64,linux/ppc64le,linux/s390x,linux/arm/v7
push: false
tags: quay.io/csi-addons/k8s-sidecar:latest

0 comments on commit fa78cb4

Please sign in to comment.