mirror of
https://github.com/logos-storage/logos-storage-nim.git
synced 2026-06-27 21:09:28 +00:00
refactor(release): emptyDir volumes are now used over PVCs, so no need to clean up (#1444)
This commit is contained in:
parent
58f8f2f63d
commit
c4a92b3d11
30
.github/workflows/release.yml
vendored
30
.github/workflows/release.yml
vendored
@ -14,6 +14,16 @@ on:
|
||||
default: 'master'
|
||||
type: string
|
||||
|
||||
concurrency:
|
||||
# Prenvent concurrent release runs. This happens, eg, in a
|
||||
# double-dispatch (clicking "Run workflow" multiple times in a row) or if
|
||||
# multiple commits are pushed in quick succession to master (eg, a bugfix
|
||||
# right after a release commit).
|
||||
# All runs target the same shared GCP cluster/Terraform state, so serialize
|
||||
# them instead of racing for the state lock.
|
||||
group: ${{ github.workflow }}
|
||||
cancel-in-progress: false
|
||||
|
||||
env:
|
||||
cache_nonce: 0 # Allows for easily busting actions/cache caches
|
||||
nim_version: pinned
|
||||
@ -388,26 +398,6 @@ jobs:
|
||||
working-directory: ${{ env.TF_DIR }}
|
||||
run: terraform destroy -auto-approve
|
||||
|
||||
- name: Delete orphaned GCE disks
|
||||
if: always() && steps.tf-apply.conclusion != 'skipped'
|
||||
env:
|
||||
GCP_PROJECT: ${{ vars.RELEASE_TESTS_GCP_PROJECT }}
|
||||
run: |
|
||||
# Safety net: delete any pvc-* disks the CSI driver did not release before
|
||||
# the cluster was destroyed. Runs after terraform destroy so disks are
|
||||
# guaranteed detached (GCE rejects deletes on attached disks). The
|
||||
# releaseTestsDiskCleaner IAM role is granted out-of-band (not via Terraform)
|
||||
# so it persists across cluster lifecycles — see CLAUDE.md for details.
|
||||
gcloud compute disks list \
|
||||
--project="$GCP_PROJECT" \
|
||||
--filter="name~^pvc-" \
|
||||
--format="value(name,zone.basename())" \
|
||||
| while IFS=$'\t' read -r name zone; do
|
||||
[[ -n "$name" && -n "$zone" ]] || continue
|
||||
gcloud compute disks delete "$name" --zone="$zone" \
|
||||
--project="$GCP_PROJECT" --quiet || true
|
||||
done
|
||||
|
||||
- name: Release Terraform state lock
|
||||
if: always()
|
||||
run: |
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user