Skip to content

Commit

Permalink
build push, no load
Browse files Browse the repository at this point in the history
  • Loading branch information
hiddewie committed Mar 31, 2024
1 parent 87f26aa commit 6f46348
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 6f46348

Please sign in to comment.