-
Notifications
You must be signed in to change notification settings - Fork 3
44 lines (38 loc) · 1.39 KB
/
call-buildimage.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
name: CI Workflow
on:
workflow_dispatch:
push:
branches:
- "*"
pull_request:
types: [] # Empty list ensures PRs are not triggered. Trigger nytt bygg...
jobs:
build-install-and-deploy-libs:
uses: felleslosninger/github-workflows/.github/workflows/ci-maven-install-deploy-lib.yml@efm-tilpasninger-2
with:
java-version: 11
sbom-path: serviceregistry-server/target/
secrets: inherit
call-workflow-image-build-publish:
uses: felleslosninger/github-workflows/.github/workflows/ci-spring-boot-build-publish-image.yml@main
needs: [build-install-and-deploy-libs]
with:
application-path: serviceregistry-server/
image-name: efm-service-registry
java-version: 11
slack-channel-id: C05NLQCFR41
update-versions: "false"
secrets: inherit
call-update-image:
needs: [call-workflow-image-build-publish]
if: github.ref == 'refs/heads/main'
uses: felleslosninger/github-workflows/.github/workflows/ci-call-update-image.yml@main
with:
application-name: efm-service-registry
deployment-environment: dev
image-digest: ${{ needs.call-workflow-image-build-publish.outputs.image-digest }}
image-name: efm-service-registry
image-version: ${{ needs.call-workflow-image-build-publish.outputs.image-version }}
kubernetes-repo: eformidling-cd
product-name: eformidling
secrets: inherit