Skip to content

Commit

Permalink
Remove gradetool image to save space (redhat-best-practices-for-k8s#1306
Browse files Browse the repository at this point in the history
)

* Remove gradetool image to save space

* Address spacing
  • Loading branch information
sebrandon1 authored Aug 3, 2023
1 parent 92b7486 commit 6356c7b
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/pre-main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,12 @@ jobs:
with:
ref: ${{ github.sha }}

- name: Cleanup the runner
run: |
sudo rm -rf /usr/share/dotnet
sudo rm -rf /opt/ghc
sudo rm -rf "/usr/local/share/boost"
# Update the CNF containers, helm charts and operators DB

- name: Update the CNF DB
Expand Down Expand Up @@ -253,6 +259,9 @@ jobs:
path: |
cnf-certification-test/*.tar.gz
- name: Remove tarball(s) to save disk space.
run: rm -f cnf-certification-test/*.tar.gz

- name: Run gradetool on the claim.json
run: |
docker pull ${REGISTRY}/${GRADETOOL_IMAGE_NAME}:${GRADETOOL_IMAGE_TAG}
Expand All @@ -268,6 +277,13 @@ jobs:
exit 1
fi
- name: Remove gradetool container image and the go mod cache to save disk space.
run: |
df -h
docker rmi -f ${REGISTRY}/${GRADETOOL_IMAGE_NAME}:${GRADETOOL_IMAGE_TAG} || true
go clean -modcache || true
df -h
- name: 'Test: Run preflight specific test suite'
run: TNF_LOG_LEVEL=${TNF_SMOKE_TESTS_LOG_LEVEL} ./run-cnf-suites.sh -l "preflight"

Expand All @@ -278,6 +294,9 @@ jobs:
name: preflight-smoke-tests
path: |
cnf-certification-test/*.tar.gz
- name: Remove tarball(s) to save disk space
run: rm -f cnf-certification-test/*.tar.gz

smoke-tests-container:
name: Run Container Smoke Tests
Expand Down Expand Up @@ -318,6 +337,12 @@ jobs:
with:
ref: ${{ github.sha }}

- name: Cleanup the runner
run: |
sudo rm -rf /usr/share/dotnet
sudo rm -rf /opt/ghc
sudo rm -rf "/usr/local/share/boost"
- name: Build the `cnf-certification-test` image
run: |
make build-image-local
Expand Down Expand Up @@ -353,6 +378,9 @@ jobs:
path: |
${{ env.TNF_OUTPUT_DIR }}/*.tar.gz
- name: Remove tarball(s) to save disk space.
run: rm -f ${{ env.TNF_OUTPUT_DIR }}/*.tar.gz

- name: Run gradetool on the claim.json
run: |
docker pull ${REGISTRY}/${GRADETOOL_IMAGE_NAME}:${GRADETOOL_IMAGE_TAG}
Expand All @@ -368,6 +396,13 @@ jobs:
exit 1
fi
- name: Remove gradetool container image and the go mod cache to save disk space.
run: |
df -h
docker rmi -f ${REGISTRY}/${GRADETOOL_IMAGE_NAME}:${GRADETOOL_IMAGE_TAG} || true
go clean -modcache || true
df -h
- name: 'Test: Run Preflight Specific Smoke Tests in a TNF container'
run: TNF_LOG_LEVEL=${TNF_SMOKE_TESTS_LOG_LEVEL} ./run-tnf-container.sh ${{ env.TESTING_CMD_PARAMS }} -l "preflight"

Expand All @@ -378,6 +413,9 @@ jobs:
name: preflight-smoke-tests-container
path: |
${{ env.TNF_OUTPUT_DIR }}/*.tar.gz
- name: Remove tarball(s) to save disk space.
run: rm -f ${{ env.TNF_OUTPUT_DIR }}/*.tar.gz

# Push the new unstable TNF image to Quay.io.
- name: (if on main and upstream) Authenticate against Quay.io
Expand Down

0 comments on commit 6356c7b

Please sign in to comment.