Skip to content

Commit

Permalink
Tools ENV Image Tag Clean up (#256)
Browse files Browse the repository at this point in the history
  • Loading branch information
KjartanE authored Oct 8, 2024
1 parent 25f3c22 commit 4eded0e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/deployStatic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -562,18 +562,19 @@ jobs:
env:
POD_SELECTOR: restoration-tracker
run: |
oc --namespace d83219-dev get all,pvc,secret,pods,ReplicationController,DeploymentConfig,HorizontalPodAutoscaler,imagestreamtag -o name | grep $POD_SELECTOR | grep $PR_NUMBER | awk '{print "oc delete --ignore-not-found " $1}' | bash
oc -n d83219-dev get all,pvc,secret,pods,ReplicationController,DeploymentConfig,HorizontalPodAutoscaler,imagestreamtag -o name | grep $POD_SELECTOR | grep $PR_NUMBER | awk '{print "oc delete --ignore-not-found " $1}' | bash
# Clean the reamaining build/deployment artifacts
- name: Clean remaining Artifacts Tools
env:
POD_SELECTOR: restoration-tracker
run: |
oc --namespace d83219-tools get all,pvc,secret,pods,ReplicationController,DeploymentConfig,HorizontalPodAutoscaler,imagestreamtag -o name | grep $POD_SELECTOR | grep $PR_NUMBER | awk '{print "oc delete --ignore-not-found " $1}' | bash
oc -n d83219-tools get all,pvc,secret,pods,ReplicationController,DeploymentConfig,HorizontalPodAutoscaler,imagestreamtag -o name | grep $POD_SELECTOR | grep $PR_NUMBER | awk '{print "oc delete --ignore-not-found " $1}' | bash
oc -n d83219-tools get imagestreamtag | grep $POD_SELECTOR | grep $PR_NUMBER | awk '{print "oc -n d83219-tools tag -d " $1}' | bash
# cypress-run:
# runs-on: ubuntu-latest
# timeout-minutes: 20
# timeout-minutes: 2
# if: ${{ github.event.pull_request.merged == true && github.event.pull_request.draft == false && github.base_ref != 'prod' }}
# env:
# CYPRESS_RECORD_KEY: ${{ secrets.RECORDING_KEY }}
Expand Down

0 comments on commit 4eded0e

Please sign in to comment.