Skip to content

Commit

Permalink
feat: add image build
Browse files Browse the repository at this point in the history
build the container image
  • Loading branch information
BobyMCbobs committed Oct 11, 2023
1 parent 7d9dec0 commit 4577da3
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 37 deletions.
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

0 comments on commit 4577da3

Please sign in to comment.