diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index d17cb81c..430127b5 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -115,7 +115,7 @@ jobs: docker cp "$DB_CONTAINER_ID:/var/lib/postgresql/postgres-data" db/postgres-data echo 'COPY postgres-data /var/lib/postgresql/postgres-data' >> db/Dockerfile docker system prune --force --all --volumes - docker compose build --push db + # docker compose build --push db # Squash image to reduce size by removing duplicated added/removed files in Docker layers # Docker container commit does not support squashing, see https://github.com/docker/for-linux/issues/453#issuecomment-668645475 @@ -125,6 +125,15 @@ jobs: # docker push "$DB_IMAGE" + - name: Push + id: docker_build + uses: docker/build-push-action@v5 + with: + context: db + load: false + push: true + tags: ghcr.io/hiddewie/openrailwaymap-import-db:latest + # generate-tiles: # name: Generate tiles # runs-on: ubuntu-latest