Skip to content

Commit

Permalink
psql
Browse files Browse the repository at this point in the history
  • Loading branch information
1mr committed Jan 31, 2024
1 parent ecec40b commit 70d5ed3
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/psql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Docker Image CI

on:
push:
branches:
- main
paths:
- 'psql/**'
- '.github/workflows/psql.yml'

env:
CONTEXT_PATH: './psql'

jobs:
psql:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Login to DockerHub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Build and push
uses: docker/build-push-action@v4
with:
context: ${{ env.CONTEXT_PATH }}/
file: ${{ env.CONTEXT_PATH }}/Dockerfile
push: true
tags: joinsolutions/psql:16
5 changes: 5 additions & 0 deletions psql/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
FROM alpine:3.19

RUN apk --update add postgresql16-client

ENTRYPOINT ["psql"]

0 comments on commit 70d5ed3

Please sign in to comment.