Skip to content

Commit

Permalink
Merge pull request #340 from lyricnz/feature/reduce-db-gha-storage
Browse files Browse the repository at this point in the history
Try and reduce disk requirements for building DB image
  • Loading branch information
LukePrior authored Apr 2, 2024
2 parents 2c69ac7 + 16830be commit d388ec2
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/publish-db-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,12 @@ jobs:
- name: Maximize build space
uses: easimon/maximize-build-space@master
with:
root-reserve-mb: 32000
root-reserve-mb: 20000
swap-size-mb: 1024
remove-dotnet: 'true'
remove-android: 'true'
remove-haskell: 'true'
remove-codeql: 'true'

- name: Check out the repo
uses: actions/checkout@v3
Expand All @@ -28,7 +30,7 @@ jobs:
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Check upstream version
id: version
run: |
Expand All @@ -49,7 +51,7 @@ jobs:
run: |
GNAF_LOADER_TAG=${{ steps.version.outputs.GNAF_LOADER_TAG }}
curl --insecure https://minus34.com/opendata/geoscape-$GNAF_LOADER_TAG/gnaf-$GNAF_LOADER_TAG.dmp --output ./extra/db/gnaf-$GNAF_LOADER_TAG.dmp
- name: Build and push Docker image
uses: docker/build-push-action@v4
with:
Expand All @@ -60,6 +62,11 @@ jobs:
build-args: |
GNAF_LOADER_TAG=${{ steps.version.outputs.GNAF_LOADER_TAG }}
- name: Remove GNAF data dmp
run: |
GNAF_LOADER_TAG=${{ steps.version.outputs.GNAF_LOADER_TAG }}
rm -fv ./extra/db/gnaf-$GNAF_LOADER_TAG.dmp
- name: Convert the Postgres DB to SQLite
run: ./extra/db/docker2sqlite.sh

Expand Down

0 comments on commit d388ec2

Please sign in to comment.