diff --git a/.github/workflows/publish-db-image.yml b/.github/workflows/publish-db-image.yml index 30ccf33128..06edd2b25e 100644 --- a/.github/workflows/publish-db-image.yml +++ b/.github/workflows/publish-db-image.yml @@ -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 @@ -28,7 +30,7 @@ jobs: with: username: ${{ secrets.DOCKER_USERNAME }} password: ${{ secrets.DOCKER_PASSWORD }} - + - name: Check upstream version id: version run: | @@ -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: @@ -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