Merge pull request #1381 from Ankurk99/readme-dockercount #3
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: 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 |