forked from SparebankenVest/azure-key-vault-to-kubernetes
-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (41 loc) · 1.11 KB
/
webhook-build.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: Build WebHook
on:
push:
branches:
- master
- '*-patch'
paths:
- '.github/workflows/webhook-build.yaml'
- '.github/actions/**'
- 'Dockerfile'
- 'Makefile'
- 'go.mod'
- 'go.sum'
- 'cmd/azure-keyvault-secrets-webhook/**'
- 'pkg/**'
- '!docs/**'
- '!crds/**'
jobs:
build-deploy:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@master
- name: Setup Golang
uses: actions/setup-go@v1
with:
go-version: '1.18.1'
- name: Build
uses: ./.github/actions/build
env:
AKV2K8S_CLIENT_ID: ${{ secrets.INT_TEST_CLIENT_ID }}
AKV2K8S_CLIENT_SECRET: ${{ secrets.INT_TEST_CLIENT_SECRET }}
AKV2K8S_CLIENT_TENANT_ID: ${{ secrets.INT_TEST_TENANT_ID }}
AKV2K8S_AZURE_SUBSCRIPTION: ${{ secrets.INT_TEST_SUBSCRIPTION }}
with:
build-make-action: image-webhook
- name: Push
uses: ./.github/actions/push
with:
push-make-action: push-webhook
docker-user: ${{ secrets.PRIVATE_REGISTRY_USERNAME }}
docker-passw: ${{ secrets.PRIVATE_REGISTRY_PASSWORD }}