Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add image build #1

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 0 additions & 37 deletions .conform.yaml

This file was deleted.

36 changes: 36 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -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
13 changes: 13 additions & 0 deletions .github/workflows/policy-conformance.yml
Original file line number Diff line number Diff line change
@@ -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