-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(ci): add cleanup workflow update notification
Signed-off-by: Evgeniy Frolov <[email protected]>
- Loading branch information
Showing
2 changed files
with
54 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
name: cleanup | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
werfDir: | ||
required: false | ||
type: string | ||
withoutKube: | ||
required: false | ||
type: string | ||
werfRepo: | ||
required: false | ||
type: string | ||
secrets: | ||
cleanupToken: | ||
description: "cleanup token" | ||
required: true | ||
kubeconfig: | ||
required: false | ||
githubToken: | ||
required: true | ||
|
||
defaults: | ||
run: | ||
shell: bash | ||
|
||
jobs: | ||
cleanup: | ||
name: cleanup | ||
runs-on: ubuntu-latest-16-cores | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Install werf | ||
uses: werf/actions/install@v2 | ||
with: | ||
channel: alpha | ||
|
||
- name: Cleanup | ||
run: | | ||
. $(werf ci-env github --as-file) | ||
werf cleanup | ||
env: | ||
WERF_DIR: ${{ inputs.werfDir }} | ||
WERF_WITHOUT_KUBE: ${{ inputs.withoutKube }} | ||
GITHUB_TOKEN: ${{ secrets.githubToken }} | ||
WERF_REPO_GITHUB_TOKEN: ${{ secrets.cleanupToken }} | ||
WERF_KUBE_CONFIG_BASE64: ${{ secrets.kubeconfig }} | ||
WERF_REPO: ${{ inputs.werfRepo }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters