Bump base image Ubuntu to 24.04, Bump gdal to 3.9 #2112
Workflow file for this run
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
name: Cleanup | |
on: | |
pull_request: | |
types: [closed] | |
branches: | |
- main | |
jobs: | |
cleanup-non-db: | |
name: Delete non-DB resources associated with pr | |
runs-on: ubuntu-24.04 | |
steps: | |
- name: Set Variables | |
shell: bash | |
run: | | |
echo "SUFFIX=pr-${{ github.event.number }}" >> $GITHUB_ENV | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Clean up - dev (OCP4) | |
shell: bash | |
run: | | |
oc login "${{ secrets.OPENSHIFT_CLUSTER }}" --token="${{ secrets.OC4_DEV_TOKEN }}" | |
PROJ_TARGET=e1e498-dev bash openshift/scripts/oc_cleanup.sh ${SUFFIX} apply | |
- name: Clean up - tools (OCP4) | |
shell: bash | |
run: | | |
oc login "${{ secrets.OPENSHIFT_CLUSTER }}" --token="${{ secrets.OC4_TOOL_TOKEN }}" | |
bash openshift/scripts/oc_cleanup_tools.sh ${SUFFIX} apply | |
- name: Clean up - test (OCP4) | |
shell: bash | |
run: | | |
oc login "${{ secrets.OPENSHIFT_CLUSTER }}" --token="${{ secrets.OC4_TEST_TOKEN }}" | |
PROJ_TARGET=e1e498-test bash openshift/scripts/oc_cleanup.sh ${SUFFIX} apply | |
cleanup-db: | |
name: Delete DB resources associated with PR | |
needs: cleanup-non-db | |
runs-on: ubuntu-24.04 | |
steps: | |
- name: Set Variables | |
shell: bash | |
run: | | |
echo "SUFFIX=pr-${{ github.event.number }}" >> $GITHUB_ENV | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Clean up dev database | |
shell: bash | |
run: | | |
oc login "${{ secrets.OPENSHIFT_CLUSTER }}" --token="${{ secrets.OC4_DEV_TOKEN }}" | |
PROJ_TARGET=e1e498-dev bash openshift/scripts/oc_cleanup_db.sh ${SUFFIX} apply | |
- name: Clean up test database | |
shell: bash | |
run: | | |
oc login "${{ secrets.OPENSHIFT_CLUSTER }}" --token="${{ secrets.OC4_TEST_TOKEN }}" | |
PROJ_TARGET=e1e498-test bash openshift/scripts/oc_cleanup_db.sh ${SUFFIX} apply | |
- name: Clean up s3 backups in object store | |
shell: bash | |
run: | | |
oc login "${{ secrets.OPENSHIFT_CLUSTER }}" --token="${{ secrets.OC4_DEV_TOKEN }}" | |
PROJ_TARGET=e1e498-dev bash openshift/scripts/oc_provision_backup_s3_cleanup.sh ${SUFFIX} |