From e304e43245f20d38f045d0dfea8f46f91e2d4821 Mon Sep 17 00:00:00 2001 From: Andrew Rynhard Date: Sun, 29 Oct 2023 15:31:48 +0000 Subject: [PATCH] chore: add GitHub action --- .github/workflows/ci.yaml | 40 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 .github/workflows/ci.yaml diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 0000000..f002372 --- /dev/null +++ b/.github/workflows/ci.yaml @@ -0,0 +1,40 @@ +name: ci + +on: + push: + +jobs: + build: + runs-on: ubuntu-latest + steps: + - + name: Checkout + 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: Set up Buildx driver + run: docker buildx create --use + + - name: Set up Go + uses: actions/setup-go@v4 + with: + go-version: '^1.13.1' + - + name: Build + run: docker build --platform=linux/amd64,linux/arm64 -t ghcr.io/siderolabs/kube-scheduler . + - + name: Login to ghcr.io + uses: docker/login-action@v1 + with: + registry: ghcr.io + username: ${{github.actor}} + password: ${{secrets.GITHUB_TOKEN}} + - + name: Push container + run: docker push ghcr.io/siderolabs/kube-scheduler:latest