-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit dafdbb1
Showing
5 changed files
with
664 additions
and
0 deletions.
There are no files selected for viewing
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: Publish to Docker Hub | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
paths-ignore: | ||
- "*.md" | ||
|
||
jobs: | ||
build-and-push-to-docker-hub: | ||
name: Build and Push to Docker Hub | ||
runs-on: ubuntu-24.04 | ||
environment: production | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v3 | ||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
- name: Login to Docker Hub | ||
uses: docker/login-action@v3 | ||
with: | ||
username: ${{ secrets.DOCKER_USERNAME }} | ||
password: ${{ secrets.DOCKER_PASSWORD }} | ||
- name: Build and push | ||
uses: docker/build-push-action@v2 | ||
with: | ||
context: . | ||
# TODO: support multiple Dockerfiles | ||
file: ./Dockerfiles/alpine.Dockerfile | ||
platforms: linux/amd64,linux/arm64 | ||
push: true | ||
tags: ${{ secrets.DOCKER_USERNAME }}/postgres-e2econtainer:15-alpine3.20-hll2.18 | ||
build-args: | | ||
POSTGRES_VERSION=15 | ||
ALPINE_VERSION=3.20 | ||
HLL_VERSION=2.18 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
ARG POSTGRES_VERSION | ||
ARG ALPINE_VERSION=3.20 | ||
ARG HLL_VERSION=2.18 | ||
|
||
FROM hbontempo/postgres-hll:${POSTGRES_VERSION}-alpine${ALPINE_VERSION}-v${HLL_VERSION} as base | ||
|
||
COPY ./configs/postgresql.conf /usr/local/share/postgresql/postgresql.conf | ||
|
||
CMD ["postgres", "-c", "config_file=/usr/local/share/postgresql/postgresql.conf"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# Postgres-e2econtainer | ||
|
||
A High-performance PostgreSQL docker imaeg optimized for E2E testing, with unnecessary features such as logging, recovery, and synchronization disabled for faster query execution. | ||
|
||
## Base Image | ||
|
||
https://github.com/hbontempo-br/docker-postgres-hll |
Oops, something went wrong.