Skip to content

Commit 98f2309

Browse files
committed
refactor: use workflows
JIRA: INFRA-3992
1 parent bf466bc commit 98f2309

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

.github/workflows/gitops-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

@@ -86,7 +86,7 @@ jobs:
8686
strategy:
8787
matrix:
8888
chart: ${{ fromJSON(needs.prepare-build.outputs.charts) }}
89-
uses: gooddata/github-actions/.github/workflows/ii-chart-validation.yaml@master
89+
uses: ./.github/workflows/chart-validation.yaml
9090
with:
9191
base_branch: ${{ inputs.base_branch }}
9292
chart: ${{ matrix.chart }}
@@ -128,7 +128,7 @@ jobs:
128128
fi
129129
)" >> $GITHUB_OUTPUT
130130
- name: Build docker image
131-
uses: gooddata/github-actions/ecr/container-build-push@master
131+
uses: ./.github/actions/container-build-push
132132
with:
133133
ecr-repos: ${{ inputs.deploy && format('staging/{0}', matrix.component) || format('gdc-testing/{0}', matrix.component) }}
134134
aws-creds-vault-role: ${{ inputs.deploy && 'ecr-ii-push' || 'ecr-push-testing' }}
@@ -165,7 +165,7 @@ jobs:
165165
submodules: 'true'
166166
token: ${{ secrets.TOKEN_GITHUB_YENKINS }}
167167
- name: Build helm chart
168-
uses: gooddata/github-actions/ecr/helm-push@master
168+
uses: ./.github/actions/helm-push
169169
with:
170170
aws-creds-vault-role: ${{ inputs.deploy && 'ecr-ii-push' || 'ecr-push-testing' }}
171171
path: k8s/charts/${{ matrix.charts }}
@@ -182,7 +182,7 @@ jobs:
182182
needs.helm-charts-build.result != 'skipped'
183183
) &&
184184
inputs.deploy
185-
uses: gooddata/github-actions/.github/workflows/ii-build-helmreleases.yaml@master
185+
uses: ./.github/workflows/build-helmreleases.yaml
186186
with:
187187
charts: ${{ needs.prepare-build.outputs.charts }}
188188
images: ${{ needs.prepare-build.outputs.images }}
@@ -196,7 +196,7 @@ jobs:
196196
!contains(needs.*.result, 'failure') &&
197197
needs.build-helmreleases.result == 'success' &&
198198
inputs.deploy
199-
uses: gooddata/github-actions/.github/workflows/ii-create-gitops-deployments-pr.yaml@master
199+
uses: ./.github/workflows/create-gitops-deployments-pr.yaml
200200
with:
201201
is_staging: true
202202
helm_releases: ${{ needs.build-helmreleases.outputs.helmreleases }}
@@ -213,7 +213,7 @@ jobs:
213213
strategy:
214214
matrix:
215215
hr: ${{ fromJson(needs.build-helmreleases.outputs.staging_helmreleases) }}
216-
uses: gooddata/github-actions/.github/workflows/ii-wait-for-deployment.yaml@master
216+
uses: ./.github/workflows/wait-for-deployment.yaml
217217
with:
218218
namespace: ${{ matrix.hr.namespace }}
219219
release_name: ${{ matrix.hr.releasename }}
@@ -226,7 +226,7 @@ jobs:
226226
!cancelled() &&
227227
needs.wait-for-deployment.result == 'failure' &&
228228
inputs.deploy
229-
uses: gooddata/github-actions/.github/workflows/ii-revert-staging-pr.yaml@master
229+
uses: ./.github/workflows/revert-staging-pr.yaml
230230
with:
231231
commit_hash: ${{ needs.create-staging-pr.outputs.commit_hash }}
232232
original_pr_title: ${{ needs.create-staging-pr.outputs.pr_title }}
@@ -239,7 +239,7 @@ jobs:
239239
!contains(needs.*.result, 'failure') &&
240240
needs.build-helmreleases.result == 'success' &&
241241
inputs.deploy
242-
uses: gooddata/github-actions/.github/workflows/ii-promote-to-stable.yaml@master
242+
uses: ./.github/workflows/promote-to-stable.yaml
243243
with:
244244
images: ${{ needs.prepare-build.outputs.images }}
245245
charts: ${{ needs.build-helmreleases.outputs.built_charts }}
@@ -256,7 +256,7 @@ jobs:
256256
strategy:
257257
matrix:
258258
cluster: ${{ fromJson(needs.build-helmreleases.outputs.updated_prod_cluster_names) }}
259-
uses: gooddata/github-actions/.github/workflows/ii-create-gitops-deployments-pr.yaml@master
259+
uses: ./.github/workflows/create-gitops-deployments-pr.yaml
260260
with:
261261
is_staging: false
262262
is_auto_merge: true
@@ -273,7 +273,7 @@ jobs:
273273
needs.build-helmreleases.result == 'success' &&
274274
!inputs.AUTO_MERGE &&
275275
inputs.deploy
276-
uses: gooddata/github-actions/.github/workflows/ii-create-gitops-deployments-pr.yaml@master
276+
uses: ./.github/workflows/create-gitops-deployments-pr.yaml
277277
with:
278278
is_staging: false
279279
is_auto_merge: false
@@ -288,7 +288,7 @@ jobs:
288288
!contains(needs.*.result, 'failure') &&
289289
needs.build-helmreleases.result == 'success' &&
290290
inputs.deploy
291-
uses: gooddata/github-actions/.github/workflows/ii-create-pr-comment.yaml@master
291+
uses: ./.github/workflows/create-pr-comment.yaml
292292
with:
293293
auto_merge: ${{ inputs.AUTO_MERGE }}
294294
updated_prod_cluster_names: ${{ needs.build-helmreleases.outputs.updated_prod_cluster_names }}

0 commit comments

Comments
 (0)