Skip to content

Commit

Permalink
[update] image name
Browse files Browse the repository at this point in the history
  • Loading branch information
mostafabarmshory committed Jul 9, 2024
1 parent 5f77a8e commit b4762a4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ jobs:
- name: Build the Postgres 13 Docker image
run: |
timetag=(`date +%Y%M%d`)
docker build . --tag ghcr.io/viraweb123/docker-postgres:13.${timetag} --tag ghcr.io/viraweb123/docker-postgres:13
docker push ghcr.io/viraweb123/docker-postgres:13
docker push ghcr.io/viraweb123/docker-postgres:13.${timetag}
docker build . --tag ghcr.io/viraweb123/postgres:13.${timetag} --tag ghcr.io/viraweb123/postgres:13
docker push ghcr.io/viraweb123/postgres:13
docker push ghcr.io/viraweb123/postgres:13.${timetag}
10 changes: 6 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
FROM postgres:13

########################################################
# Install PostGIS
########################################################
RUN apt-get update \
&& apt-get install -y \
postgresql-13-postgis-3 \
postgresql-13-postgis-3-scripts \
&& rm -rf /var/lib/apt/lists/*

# Create the PostGIS extension
RUN mkdir -p "/docker-entrypoint-initdb.d" \
&& rm -rf /var/lib/apt/lists/* \
&& apt-get clean \
&& rm -rf var/cache/apt/archives/* \
&& mkdir -p "/docker-entrypoint-initdb.d" \
&& echo "CREATE EXTENSION IF NOT EXISTS postgis;" > /docker-entrypoint-initdb.d/postgis_o125.sql

0 comments on commit b4762a4

Please sign in to comment.