Syncing latest changes from upstream main for kubernetes-csi-addons #250
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: Test building container images | |
# yamllint disable-line rule:truthy | |
on: | |
pull_request: | |
branches: | |
- "*" | |
jobs: | |
build_bundle: | |
name: build_bundle | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out the repo | |
uses: actions/checkout@v4 | |
- name: Setup Golang | |
uses: actions/setup-go@v5 | |
with: | |
go-version: "1.22" | |
- name: Generate the bundle contents | |
run: make bundle | |
- name: Validate the bundle contents | |
run: make bundle-validate | |
- name: Build bundle container image | |
uses: docker/build-push-action@v6 | |
with: | |
context: . | |
file: bundle.Dockerfile | |
push: false | |
tags: quay.io/csiaddons/k8s-bundle:latest | |
build_controller: | |
name: build_controller | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out the repo | |
uses: actions/checkout@v4 | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v3 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: Build container container image | |
uses: docker/build-push-action@v6 | |
with: | |
context: . | |
file: Dockerfile | |
platforms: ${{ secrets.BUILD_PLATFORMS }} | |
push: false | |
tags: quay.io/csiaddons/k8s-controller:latest | |
build_sidecar: | |
name: build_sidecar | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out the repo | |
uses: actions/checkout@v4 | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v3 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: Build sidecar container image | |
uses: docker/build-push-action@v6 | |
with: | |
context: . | |
file: build/Containerfile.sidecar | |
platforms: ${{ secrets.BUILD_PLATFORMS }} | |
push: false | |
tags: quay.io/csiaddons/k8s-sidecar:latest |