mirror of
https://github.com/cert-manager/webhook-example.git
synced 2025-07-01 22:35:49 +02:00
workflows for pr ands tags (along with required fixes to go code)
This commit is contained in:
parent
f6b1c25cf4
commit
00ee46876f
4 changed files with 51 additions and 1 deletions
32
.github/workflows/workflow_full-test-suite.yaml
vendored
Normal file
32
.github/workflows/workflow_full-test-suite.yaml
vendored
Normal file
|
@ -0,0 +1,32 @@
|
|||
name: Run full test suite
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
pull_request:
|
||||
branches:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
code-test:
|
||||
name: Run tests on code
|
||||
uses: ./.github/workflows/test-go.yaml
|
||||
secrets: inherit
|
||||
|
||||
|
||||
build-image:
|
||||
name: Build Docker image
|
||||
uses: ./.github/workflows/build-images.yaml
|
||||
with:
|
||||
tags: >
|
||||
commit-${{ github.sha }}
|
||||
latest
|
||||
needs: code-test
|
||||
|
||||
|
||||
webhook-tests:
|
||||
name: Run tests on webhooks
|
||||
needs: build-image
|
||||
uses: ./.github/workflows/test-kubernetes.yaml
|
||||
secrets: inherit
|
16
.github/workflows/workflow_tagged-build.yaml
vendored
Normal file
16
.github/workflows/workflow_tagged-build.yaml
vendored
Normal file
|
@ -0,0 +1,16 @@
|
|||
name: Publish a new tagged Docker image
|
||||
|
||||
on:
|
||||
push:
|
||||
tags: # v* tags are protected in the repository settings
|
||||
- 'v*'
|
||||
|
||||
jobs:
|
||||
docker-build:
|
||||
name: Build tagged Docker image
|
||||
uses: ./.github/workflows/build-images.yaml
|
||||
with:
|
||||
tags: >
|
||||
${{ github.ref }}
|
||||
commit-${{ github.sha }}
|
||||
latest
|
|
@ -1,6 +1,6 @@
|
|||
module github.com/neoskop/cert-manager-webhook-dnsimple
|
||||
|
||||
go 1.20
|
||||
go 1.22
|
||||
|
||||
require (
|
||||
github.com/cert-manager/cert-manager v1.12.1
|
||||
|
|
|
@ -22,6 +22,8 @@ func TestRunsSuite(t *testing.T) {
|
|||
dns.SetAllowAmbientCredentials(false),
|
||||
dns.SetManifestPath(testdata_dir),
|
||||
dns.SetDNSName("puzzle.beer"),
|
||||
dns.SetUseAuthoritative(false),
|
||||
dns.SetDNSServer("ns1.dnsimple.com:53"),
|
||||
)
|
||||
|
||||
fixture.RunConformance(t)
|
||||
|
|
Loading…
Reference in a new issue