Skip to content

Commit

Permalink
chore(ci): replace matrix with step
Browse files Browse the repository at this point in the history
Signed-off-by: Evgeniy Frolov <[email protected]>
  • Loading branch information
Fral738 committed Dec 13, 2024
1 parent 61cf6be commit 02f0abf
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions .github/workflows/cleanup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,11 @@ env:
WERF_ENV: "production"
WERF_REPO: "ghcr.io/${{ github.repository_owner }}/werfio-guides"
WERF_STAGES_STORAGE: "ghcr.io/werf/werfio-guides-stages"
WERF_KUBE_CONFIG_BASE64: ${{ secrets.KUBECONFIG_BASE64_PROD }}

jobs:
cleanup:
name: Cleanup
runs-on: ubuntu-latest-4-cores
strategy:
matrix:
repo:
- "ghcr.io/${{ github.repository_owner }}/werfio-guides"
- "ghcr.io/werf/werfio-guides-stages"
steps:
- name: Checkout code
uses: actions/checkout@v3
Expand All @@ -39,4 +33,15 @@ jobs:
WERF_LOG_VERBOSE: "on"
WERF_REPO_GITHUB_TOKEN: ${{ secrets.REGISTRY_CLEANUP_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
WERF_REPO: ${{ matrix.repo }}
WERF_KUBE_CONFIG_BASE64: ${{ secrets.KUBECONFIG_BASE64_PROD }}

- name: Cleanup staged storage
run: |
. $(werf ci-env github --as-file)
werf cleanup
env:
WERF_LOG_VERBOSE: "on"
WERF_REPO_GITHUB_TOKEN: ${{ secrets.REGISTRY_CLEANUP_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
WERF_REPO: "ghcr.io/werf/werfio-guides-stages"
WERF_WITHOUT_KUBE: "true"

0 comments on commit 02f0abf

Please sign in to comment.