Skip to content

feat: patch resource to node capacity #48

feat: patch resource to node capacity

feat: patch resource to node capacity #48

Workflow file for this run

# This workflow will build a golang project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go
name: Go
on:
push:
branches: [ "master" ]
tags:
- v[0-9]+.[0-9]+.[0-9]+.[0-9]+
- v[0-9]+.[0-9]+.[0-9]+
- v[0-9]+.[0-9]+
pull_request:
branches: [ "master" ]
jobs:
build:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.20'
- name: Build
run: go build -o ./k8s-device-plugin cmd/k8s-device-plugin/main.go
docker_build:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Docker Login
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
uses: docker/login-action@v3.6.0
with:
username: ${{ secrets.DOCKERHUB_TOKEN }}
password: ${{ secrets.DOCKERHUB_PASSWD }}
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
with:
driver-opts: image=moby/buildkit:master
- name: Build and optionally push
uses: docker/build-push-action@v6.18.0
with:
platforms: linux/amd64,linux/arm64
push: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
tags: projecthami/mock-device-plugin:latest