Skip to content

Merge pull request #1381 from Ankurk99/readme-dockercount #3

Merge pull request #1381 from Ankurk99/readme-dockercount

Merge pull request #1381 from Ankurk99/readme-dockercount #3

name: ci-release-operator
on:
push:
branches:
- "main"
paths:
# release on any dependency change
- "pkg/**"
- "deployments/get/**"
- "KubeArmor/utils/**"
env:
PLATFORM: linux/amd64,linux/arm64/v8
jobs:
kubearmor-operator-release:
name: Build & Push KubeArmor Operator
defaults:
run:
working-directory: ./pkg/KubeArmorOperator
runs-on: ubuntu-20.04
timeout-minutes: 60
steps:
- uses: actions/setup-go@v3
with:
go-version: "v1.20"
- uses: actions/checkout@v3
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
with:
platforms: linux/amd64,linux/arm64/v8
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_AUTHTOK }}
- name: Build & Push KubeArmor Operator
run: PLATFORM=$PLATFORM make docker-buildx TAG=latest