Skip to content

Commit 07a3df0

Browse files
committed
refactor: use workflows
JIRA: INFRA-3992
1 parent a780baf commit 07a3df0

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

.github/workflows/lcm-pipeline.yaml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ jobs:
7676
strategy:
7777
matrix:
7878
image: ${{ fromJSON(needs.prepare-build.outputs.images) }}
79-
uses: gooddata/github-actions/.github/workflows/ii-dockerfile-validation.yaml@master
79+
uses: ./.github/workflows/dockerfile-validation.yaml
8080
with:
8181
image: ${{ matrix.image }}
8282
secrets: inherit
@@ -87,7 +87,7 @@ jobs:
8787
strategy:
8888
matrix:
8989
chart: ${{ fromJSON(needs.prepare-build.outputs.charts) }}
90-
uses: gooddata/github-actions/.github/workflows/ii-chart-validation.yaml@master
90+
uses: ./.github/workflows/chart-validation.yaml
9191
with:
9292
base_branch: ${{ inputs.base_branch }}
9393
chart: ${{ matrix.chart }}
@@ -130,7 +130,7 @@ jobs:
130130
fi
131131
)" >> $GITHUB_OUTPUT
132132
- name: Build docker image
133-
uses: gooddata/github-actions/ecr/container-build-push@master
133+
uses: ./.github/actions/container-build-push
134134
with:
135135
ecr-repos: ${{ inputs.deploy && format('staging/{0}', matrix.component) || format('gdc-testing/{0}', matrix.component) }}
136136
aws-creds-vault-role: ${{ inputs.deploy && 'ecr-ii-push' || 'ecr-push-testing' }}
@@ -170,7 +170,7 @@ jobs:
170170
submodules: 'true'
171171
token: ${{ secrets.TOKEN_GITHUB_YENKINS }}
172172
- name: Build helm chart
173-
uses: gooddata/github-actions/ecr/helm-push@master
173+
uses: ./.github/actions/helm-push
174174
with:
175175
aws-creds-vault-role: ${{ inputs.deploy && 'ecr-ii-push' || 'ecr-push-testing' }}
176176
vault-url: '${{ secrets.VAULT_ADDRESS }}'
@@ -189,7 +189,7 @@ jobs:
189189
needs.helm-charts-build.result != 'skipped'
190190
) &&
191191
inputs.deploy
192-
uses: gooddata/github-actions/.github/workflows/ii-build-helmreleases.yaml@master
192+
uses: ./.github/workflows/build-helmreleases.yaml
193193
with:
194194
charts: ${{ needs.prepare-build.outputs.charts }}
195195
images: ${{ needs.prepare-build.outputs.images }}
@@ -203,7 +203,7 @@ jobs:
203203
!contains(needs.*.result, 'failure') &&
204204
needs.build-helmreleases.result == 'success' &&
205205
inputs.deploy
206-
uses: gooddata/github-actions/.github/workflows/ii-create-gitops-deployments-pr.yaml@master
206+
uses: ./.github/workflows/create-gitops-deployments-pr.yaml
207207
with:
208208
is_staging: true
209209
helm_releases: ${{ needs.build-helmreleases.outputs.helmreleases }}
@@ -220,7 +220,7 @@ jobs:
220220
strategy:
221221
matrix:
222222
hr: ${{ fromJson(needs.build-helmreleases.outputs.staging_helmreleases) }}
223-
uses: gooddata/github-actions/.github/workflows/ii-wait-for-deployment.yaml@master
223+
uses: ./.github/workflows/wait-for-deployment.yaml
224224
with:
225225
namespace: ${{ matrix.hr.namespace }}
226226
release_name: ${{ matrix.hr.releasename }}
@@ -233,7 +233,7 @@ jobs:
233233
!cancelled() &&
234234
needs.wait-for-deployment.result == 'failure' &&
235235
inputs.deploy
236-
uses: gooddata/github-actions/.github/workflows/ii-revert-staging-pr.yaml@master
236+
uses: ./.github/workflows/revert-staging-pr.yaml
237237
with:
238238
commit_hash: ${{ needs.create-staging-pr.outputs.commit_hash }}
239239
original_pr_title: ${{ needs.create-staging-pr.outputs.pr_title }}
@@ -246,7 +246,7 @@ jobs:
246246
!contains(needs.*.result, 'failure') &&
247247
needs.build-helmreleases.result == 'success' &&
248248
inputs.deploy
249-
uses: gooddata/github-actions/.github/workflows/ii-promote-to-stable.yaml@master
249+
uses: ./.github/workflows/promote-to-stable.yaml
250250
with:
251251
images: ${{ needs.prepare-build.outputs.images }}
252252
charts: ${{ needs.build-helmreleases.outputs.built_charts }}
@@ -264,7 +264,7 @@ jobs:
264264
strategy:
265265
matrix:
266266
cluster: ${{ fromJson(needs.build-helmreleases.outputs.updated_prod_cluster_names) }}
267-
uses: gooddata/github-actions/.github/workflows/ii-create-gitops-deployments-pr.yaml@master
267+
uses: ./.github/workflows/create-gitops-deployments-pr.yaml
268268
with:
269269
is_staging: false
270270
is_auto_merge: true
@@ -281,7 +281,7 @@ jobs:
281281
needs.build-helmreleases.result == 'success' &&
282282
!inputs.AUTO_MERGE &&
283283
inputs.deploy
284-
uses: gooddata/github-actions/.github/workflows/ii-create-gitops-deployments-pr.yaml@master
284+
uses: ./.github/workflows/create-gitops-deployments-pr.yaml
285285
with:
286286
is_staging: false
287287
is_auto_merge: false
@@ -296,7 +296,7 @@ jobs:
296296
!contains(needs.*.result, 'failure') &&
297297
needs.build-helmreleases.result == 'success' &&
298298
inputs.deploy
299-
uses: gooddata/github-actions/.github/workflows/ii-create-pr-comment.yaml@master
299+
uses: ./.github/workflows/create-pr-comment.yaml
300300
with:
301301
auto_merge: ${{ inputs.AUTO_MERGE }}
302302
updated_prod_cluster_names: ${{ needs.build-helmreleases.outputs.updated_prod_cluster_names }}

0 commit comments

Comments
 (0)