-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Expand file tree
/
Copy pathci-push-cloud-preview-helm-charts.yaml
More file actions
85 lines (83 loc) · 3.26 KB
/
Copy pathci-push-cloud-preview-helm-charts.yaml
File metadata and controls
85 lines (83 loc) · 3.26 KB
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
concurrency:
cancel-in-progress: true
group: push-cloud-preview-helm-charts-${{github.ref_name}}
defaults:
run:
shell: bash
jobs:
push-aws:
needs: set-up-variables
uses: ./.github/workflows/ci-reusable-push-helm-chart.yaml
with:
chart_name: liferay-aws
image_tag_suffix: ${{needs.set-up-variables.outputs.image_tag_suffix}}
working_directory: ./cloud/helm/aws
push-aws-infrastructure:
needs: set-up-variables
uses: ./.github/workflows/ci-reusable-push-helm-chart.yaml
with:
chart_name: liferay-aws-infrastructure
image_tag_suffix: ${{needs.set-up-variables.outputs.image_tag_suffix}}
working_directory: ./cloud/helm/aws-infrastructure
push-aws-infrastructure-provider:
needs: set-up-variables
uses: ./.github/workflows/ci-reusable-push-helm-chart.yaml
with:
chart_name: liferay-aws-infrastructure-provider
image_tag_suffix: ${{needs.set-up-variables.outputs.image_tag_suffix}}
working_directory: ./cloud/helm/aws-infrastructure-provider
push-default:
needs: set-up-variables
uses: ./.github/workflows/ci-reusable-push-helm-chart.yaml
with:
chart_name: liferay-default
image_tag_suffix: ${{needs.set-up-variables.outputs.image_tag_suffix}}
working_directory: ./cloud/helm/default
push-gcp:
needs: set-up-variables
uses: ./.github/workflows/ci-reusable-push-helm-chart.yaml
with:
chart_name: liferay-gcp
image_tag_suffix: ${{needs.set-up-variables.outputs.image_tag_suffix}}
working_directory: ./cloud/helm/gcp
push-gcp-infrastructure:
needs: set-up-variables
uses: ./.github/workflows/ci-reusable-push-helm-chart.yaml
with:
chart_name: liferay-gcp-infrastructure
image_tag_suffix: ${{needs.set-up-variables.outputs.image_tag_suffix}}
working_directory: ./cloud/helm/gcp-infrastructure
push-gcp-infrastructure-provider:
needs: set-up-variables
uses: ./.github/workflows/ci-reusable-push-helm-chart.yaml
with:
chart_name: liferay-gcp-infrastructure-provider
image_tag_suffix: ${{needs.set-up-variables.outputs.image_tag_suffix}}
working_directory: ./cloud/helm/gcp-infrastructure-provider
set-up-variables:
if: github.repository == 'cloudnative-team/liferay-portal'
outputs:
image_tag_suffix: ${{steps.vars.outputs.image_tag_suffix}}
runs-on: ubuntu-latest
steps:
- id: vars
name: Set up variables
run: |
set -o errexit
set -o nounset
set -o pipefail
function main {
echo "image_tag_suffix=-g${GITHUB_SHA::7}" >> ${GITHUB_OUTPUT}
}
main "${@}"
on:
push:
branches:
- LCD-*
paths:
- .github/workflows/ci-push-cloud-preview-helm-charts.yaml
- .github/workflows/ci-reusable-push-helm-chart.yaml
- cloud/helm/**
permissions:
contents: read
id-token: write