From 64ffd535c28b3ae6baf7012f44b9c5d3faa52429 Mon Sep 17 00:00:00 2001 From: Caleb Woodbine Date: Thu, 12 Oct 2023 10:37:42 +1300 Subject: [PATCH] feat: add image build build the container image --- .github/workflows/build.yml | 36 ++++++++++++++++++++++++ .github/workflows/policy-conformance.yml | 13 +++++++++ 2 files changed, 49 insertions(+) create mode 100644 .github/workflows/build.yml create mode 100644 .github/workflows/policy-conformance.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 00000000..a6382731 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,36 @@ +name: build +on: + push: + branches: + - main + pull_request: {} + workflow_dispatch: {} +permissions: + packages: write + id-token: write +jobs: + build: + uses: GeoNet/Actions/.github/workflows/reusable-docker-build.yml@main + with: + context: . + dockerfile: ./Dockerfile + imageName: conform + platforms: linux/amd64 + push: ${{ github.ref == 'refs/heads/main' }} + target: image-conform + buildArgs: | + TOOLCHAIN=ghcr.io/geonet/base-images/go:1.20 + GOLANGCILINT_VERSION=v1.49.0 + GOFUMPT_VERSION=v0.3.1 + GO_VERSION=1.19 + GOIMPORTS_VERSION=v0.1.12 + PROTOBUF_GO_VERSION=1.28.1 + GRPC_GO_VERSION=1.2.0 + GRPC_GATEWAY_VERSION=2.11.3 + VTPROTOBUF_VERSION=0.3.0 + DEEPCOPY_VERSION=v0.5.5 + TESTPKGS=./... + KRES_IMAGE=ghcr.io/siderolabs/kres:latest + SHA=${{ github.sha }} + TAG=${{ github.event.release.tag_name }} + VERSION_PKG=github.com/siderolabs/conform/internal/version diff --git a/.github/workflows/policy-conformance.yml b/.github/workflows/policy-conformance.yml new file mode 100644 index 00000000..d884cd5e --- /dev/null +++ b/.github/workflows/policy-conformance.yml @@ -0,0 +1,13 @@ +name: policy conformance +on: + pull_request: + branches: + - main +permissions: + statuses: write + checks: write + contents: read + pull-requests: read +jobs: + conform: + uses: GeoNet/Actions/.github/workflows/reusable-policy-conformance.yml@main