forked from blockscout/frontend
-
Notifications
You must be signed in to change notification settings - Fork 1
54 lines (52 loc) · 1.75 KB
/
cleanup.yml
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
name: Cleanup environments
on:
pull_request:
types:
- closed
- merged
workflow_dispatch:
jobs:
cleanup_release:
uses: blockscout/blockscout-ci-cd/.github/workflows/cleanup_helmfile.yaml@master
with:
appName: review-l2-$GITHUB_REF_NAME_SLUG
globalEnv: review
helmfileDir: deploy
kubeConfigSecret: ci/data/dev/kubeconfig/k8s-dev
vaultRole: ci-dev
secrets: inherit
# This job tries to clean up the k8s setup. But we don't have such thing in
# the Hemi setup. Disabling instead of deleting to keep this as referenence
# for potential future improvements.
if: false
permissions:
id-token: write
contents: read
cleanup_l2_release:
uses: blockscout/blockscout-ci-cd/.github/workflows/cleanup_helmfile.yaml@master
with:
appName: review-$GITHUB_REF_NAME_SLUG
globalEnv: review
helmfileDir: deploy
kubeConfigSecret: ci/data/dev/kubeconfig/k8s-dev
vaultRole: ci-dev
secrets: inherit
# This job tries to clean up the k8s setup. But we don't have such thing in
# the Hemi setup. Disabling instead of deleting to keep this as referenence
# for potential future improvements.
if: false
permissions:
id-token: write
contents: read
cleanup_docker_image:
uses: blockscout/blockscout-ci-cd/.github/workflows/cleanup_docker.yaml@master
with:
dockerImage: review-$GITHUB_REF_NAME_SLUG
secrets: inherit
# This job has to be temporarily disabled as Hemi uses Docker Hub instead of
# GitHub to host the images. The referenced workflow will try to remove the
# image from GitHub. A new workflow needs to be created to do this instead.
if: false
permissions:
id-token: write
contents: read