This repository has been archived by the owner on Jan 31, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
65 lines (60 loc) · 2.14 KB
/
stakater_build_image_flag.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
name: Stakater build image flag cluster task Helm Chart
on:
pull_request:
branches:
- main
paths:
- 'stakater-build-image-flag/**'
push:
branches:
- main
paths:
- 'stakater-build-image-flag/**'
jobs:
next-version:
uses: stakater/tekton-catalog/.github/workflows/next_version.yaml@main
with:
component: stakater-build-image-flag
pull-request:
uses: stakater/tekton-catalog/.github/workflows/pull_request.yaml@main
name: Pull Request
if: ${{ github.ref != 'refs/heads/main' }}
needs:
- next-version
secrets:
REGISTRY_USERNAME: ${{ github.actor }}
REGISTRY_PASSWORD: ${{ secrets.GITHUB_TOKEN }}
with:
CONTAINER_REGISTRY_URL: ghcr.io/stakater
HELM_REGISTRY_URL: oci://ghcr.io/stakater/charts
SUBPATH: stakater-build-image-flag
PUSH_CONTAINER_IMAGE: ${{ needs.next-version.outputs.dockerfile_exists }}
PUBLISH_HEM_CHART: ${{ needs.next-version.outputs.helm_chart_exists }}
NEXT_VERSION: ${{ needs.next-version.outputs.version }}
push-and-release:
uses: stakater/tekton-catalog/.github/workflows/push.yaml@main
name: Push and Release
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
needs:
- next-version
secrets:
REGISTRY_USERNAME: ${{ github.actor }}
REGISTRY_PASSWORD: ${{ secrets.GITHUB_TOKEN }}
with:
CONTAINER_REGISTRY_URL: ghcr.io/stakater
HELM_REGISTRY_URL: oci://ghcr.io/stakater/charts
SUBPATH: stakater-build-image-flag
PUSH_CONTAINER_IMAGE: ${{ needs.next-version.outputs.dockerfile_exists }}
PUBLISH_HEM_CHART: ${{ needs.next-version.outputs.helm_chart_exists }}
NEXT_VERSION: ${{ needs.next-version.outputs.version }}
render-and-replace:
uses: stakater/tekton-catalog/.github/workflows/render_task.yaml@main
name: Render and Replace
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
needs:
- next-version
secrets:
STAKATER_GITHUB_TOKEN: ${{ secrets.STAKATER_GITHUB_TOKEN }}
with:
SUBPATH: stakater-build-image-flag
NEXT_VERSION: ${{ needs.next-version.outputs.version }}