Skip to content

Commit

Permalink
Merge pull request #2 from Flared/fred_bump_pgcli_version
Browse files Browse the repository at this point in the history
Bump pgcli version to 4.0.1
  • Loading branch information
fredericmorin authored Feb 28, 2024
2 parents 1fa538d + 5f36c1c commit d50f992
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
ARG PYTHON_VERSION=3.9
ARG PYTHON_VERSION=3.12
FROM python:$PYTHON_VERSION-slim

RUN apt-get -y update && apt-get -y install libpq-dev build-essential less && rm -rf /var/lib/apt/lists/*
RUN apt-get -y update && apt-get -y install libpq-dev less && rm -rf /var/lib/apt/lists/*
ENV PAGER=less

ARG PGCLI_VERSION=3.2.0
ARG PGCLI_VERSION=4.0.1
RUN pip install pgcli==$PGCLI_VERSION

ENV PAGER=less
ENTRYPOINT ["pgcli"]
14 changes: 7 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
python_version=3.9
pgcli_version=3.2.0
python_version=3.12
pgcli_version=4.0.1
image_name=flared/pgcli

.PHONY: help build push all
Expand All @@ -18,10 +18,10 @@ help:
.DEFAULT_GOAL := all

build:
@docker build --pull --build-arg PYTHON_VERSION=${python_version} --build-arg PGCLI_VERSION=${pgcli_version} -t ${image_name} .
@docker tag ${image_name} ${image_name}:${pgcli_version}
docker build --pull --build-arg PYTHON_VERSION=${python_version} --build-arg PGCLI_VERSION=${pgcli_version} -t ${image_name} .
docker tag ${image_name} ${image_name}:${pgcli_version}
push:
@docker push ${image_name}
@docker push ${image_name}:${pgcli_version}
docker push ${image_name}
docker push ${image_name}:${pgcli_version}

all: build push
all: build push

0 comments on commit d50f992

Please sign in to comment.