Skip to content

Commit d636a0e

Browse files
authored
v1.0.0 (#1)
Initial Release * Automatically creates database(s) to match username, or via environment variable * Automated backups every 8 hours * Access via username and password * Import / export individual databases using executables
1 parent 3e82d82 commit d636a0e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+1980
-1
lines changed

.github/FUNDING.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# These are supported funding model platforms
2+
3+
github: bfren
4+
patreon: bfren

.github/workflows/dev-12.yml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
name: dev-12
2+
3+
on:
4+
push:
5+
branches-ignore:
6+
- 'main'
7+
tags-ignore:
8+
- '**'
9+
workflow_dispatch:
10+
11+
jobs:
12+
test-12:
13+
runs-on: ubuntu-latest
14+
steps:
15+
-
16+
name: Checkout code
17+
uses: actions/checkout@v2
18+
build-12:
19+
runs-on: ubuntu-latest
20+
steps:
21+
-
22+
name: Checkout code
23+
uses: actions/checkout@v2
24+
-
25+
name: Read image version
26+
uses: bfren/read-file@v1
27+
with:
28+
file: ./VERSION
29+
id: version
30+
-
31+
name: Set up QEMU
32+
uses: docker/setup-qemu-action@v1
33+
-
34+
name: Set up Docker Buildx
35+
uses: docker/setup-buildx-action@v1
36+
-
37+
name: Login to DockerHub
38+
uses: docker/login-action@v1
39+
with:
40+
username: ${{ secrets.DOCKERHUB_USERNAME }}
41+
password: ${{ secrets.DOCKERHUB_TOKEN }}
42+
-
43+
name: Build and push
44+
id: docker_build
45+
uses: docker/build-push-action@v2
46+
with:
47+
context: .
48+
file: ./12/Dockerfile
49+
push: true
50+
platforms: linux/amd64,linux/arm/v7,linux/arm64
51+
tags: |
52+
bfren/postgresql:postgresql12-dev
53+
bfren/postgresql:postgresql12-${{ steps.version.outputs.contents }}-beta
54+
-
55+
name: Image digest
56+
run: echo ${{ steps.docker_build.outputs.digest }}

.github/workflows/dev-13.yml

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
name: dev-13
2+
3+
on:
4+
push:
5+
branches-ignore:
6+
- 'main'
7+
tags-ignore:
8+
- '**'
9+
workflow_dispatch:
10+
11+
jobs:
12+
test-13:
13+
runs-on: ubuntu-latest
14+
steps:
15+
-
16+
name: Checkout code
17+
uses: actions/checkout@v2
18+
build-13:
19+
runs-on: ubuntu-latest
20+
steps:
21+
-
22+
name: Checkout code
23+
uses: actions/checkout@v2
24+
-
25+
name: Read image version
26+
uses: bfren/read-file@v1
27+
with:
28+
file: ./VERSION
29+
id: version
30+
-
31+
name: Set up QEMU
32+
uses: docker/setup-qemu-action@v1
33+
-
34+
name: Set up Docker Buildx
35+
uses: docker/setup-buildx-action@v1
36+
-
37+
name: Login to DockerHub
38+
uses: docker/login-action@v1
39+
with:
40+
username: ${{ secrets.DOCKERHUB_USERNAME }}
41+
password: ${{ secrets.DOCKERHUB_TOKEN }}
42+
-
43+
name: Build and push
44+
id: docker_build
45+
uses: docker/build-push-action@v2
46+
with:
47+
context: .
48+
file: ./13/Dockerfile
49+
push: true
50+
platforms: linux/amd64,linux/arm/v7,linux/arm64
51+
tags: |
52+
bfren/postgresql:dev
53+
bfren/postgresql:${{ steps.version.outputs.contents }}-beta
54+
bfren/postgresql:postgresql13-dev
55+
bfren/postgresql:postgresql13-${{ steps.version.outputs.contents }}-beta
56+
-
57+
name: Image digest
58+
run: echo ${{ steps.docker_build.outputs.digest }}

.github/workflows/dev-14.yml

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
name: dev-14
2+
3+
on:
4+
push:
5+
branches-ignore:
6+
- 'main'
7+
tags-ignore:
8+
- '**'
9+
workflow_dispatch:
10+
11+
jobs:
12+
test-14:
13+
runs-on: ubuntu-latest
14+
steps:
15+
-
16+
name: Checkout code
17+
uses: actions/checkout@v2
18+
build-14:
19+
runs-on: ubuntu-latest
20+
steps:
21+
-
22+
name: Checkout code
23+
uses: actions/checkout@v2
24+
-
25+
name: Read image version
26+
uses: bfren/read-file@v1
27+
with:
28+
file: ./VERSION
29+
id: version
30+
-
31+
name: Set up QEMU
32+
uses: docker/setup-qemu-action@v1
33+
-
34+
name: Set up Docker Buildx
35+
uses: docker/setup-buildx-action@v1
36+
-
37+
name: Login to DockerHub
38+
uses: docker/login-action@v1
39+
with:
40+
username: ${{ secrets.DOCKERHUB_USERNAME }}
41+
password: ${{ secrets.DOCKERHUB_TOKEN }}
42+
-
43+
name: Build and push
44+
id: docker_build
45+
uses: docker/build-push-action@v2
46+
with:
47+
context: .
48+
file: ./14/Dockerfile
49+
push: true
50+
platforms: linux/amd64,linux/arm/v7,linux/arm64
51+
tags: |
52+
bfren/postgresql:edge
53+
bfren/postgresql:postgresql14-dev
54+
bfren/postgresql:postgresql14-${{ steps.version.outputs.contents }}-beta
55+
-
56+
name: Image digest
57+
run: echo ${{ steps.docker_build.outputs.digest }}

.github/workflows/publish-12.yml

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
name: publish-12
2+
3+
on:
4+
release:
5+
types: [published]
6+
workflow_dispatch:
7+
8+
jobs:
9+
publish-12:
10+
runs-on: ubuntu-latest
11+
steps:
12+
-
13+
name: Checkout code
14+
uses: actions/checkout@v2
15+
-
16+
name: Read PostgreSQL version - minor
17+
uses: bfren/read-file@v1
18+
with:
19+
file: ./12/POSTGRESQL_MINOR
20+
id: postgresql_minor
21+
-
22+
name: Read PostgreSQL version - build
23+
uses: bfren/read-file@v1
24+
with:
25+
file: ./12/POSTGRESQL_BUILD
26+
id: postgresql_build
27+
-
28+
name: Read image version
29+
uses: bfren/read-file@v1
30+
with:
31+
file: ./VERSION
32+
id: version
33+
-
34+
name: Set up QEMU
35+
uses: docker/setup-qemu-action@v1
36+
-
37+
name: Set up Docker Buildx
38+
uses: docker/setup-buildx-action@v1
39+
-
40+
name: Login to DockerHub
41+
uses: docker/login-action@v1
42+
with:
43+
username: ${{ secrets.DOCKERHUB_USERNAME }}
44+
password: ${{ secrets.DOCKERHUB_TOKEN }}
45+
-
46+
name: Build and push
47+
id: docker_build
48+
uses: docker/build-push-action@v2
49+
with:
50+
context: .
51+
file: ./12/Dockerfile
52+
push: true
53+
platforms: linux/amd64,linux/arm/v7,linux/arm64
54+
tags: |
55+
bfren/postgresql:postgresql12
56+
bfren/postgresql:postgresql12-${{ steps.version.outputs.contents }}
57+
bfren/postgresql:postgresql${{ steps.postgresql_minor.outputs.contents }}
58+
bfren/postgresql:postgresql${{ steps.postgresql_minor.outputs.contents }}-${{ steps.version.outputs.contents }}
59+
bfren/postgresql:postgresql${{ steps.postgresql_build.outputs.contents }}
60+
-
61+
name: Image digest
62+
run: echo ${{ steps.docker_build.outputs.digest }}

.github/workflows/publish-13.yml

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
name: publish-13
2+
3+
on:
4+
release:
5+
types: [published]
6+
workflow_dispatch:
7+
8+
jobs:
9+
publish-13:
10+
runs-on: ubuntu-latest
11+
steps:
12+
-
13+
name: Checkout code
14+
uses: actions/checkout@v2
15+
-
16+
name: Read PostgreSQL version - minor
17+
uses: bfren/read-file@v1
18+
with:
19+
file: ./13/POSTGRESQL_MINOR
20+
id: postgresql_minor
21+
-
22+
name: Read PostgreSQL version - build
23+
uses: bfren/read-file@v1
24+
with:
25+
file: ./13/POSTGRESQL_BUILD
26+
id: postgresql_build
27+
-
28+
name: Read image version
29+
uses: bfren/read-file@v1
30+
with:
31+
file: ./VERSION
32+
id: version
33+
-
34+
name: Set up QEMU
35+
uses: docker/setup-qemu-action@v1
36+
-
37+
name: Set up Docker Buildx
38+
uses: docker/setup-buildx-action@v1
39+
-
40+
name: Login to DockerHub
41+
uses: docker/login-action@v1
42+
with:
43+
username: ${{ secrets.DOCKERHUB_USERNAME }}
44+
password: ${{ secrets.DOCKERHUB_TOKEN }}
45+
-
46+
name: Build and push
47+
id: docker_build
48+
uses: docker/build-push-action@v2
49+
with:
50+
context: .
51+
file: ./13/Dockerfile
52+
push: true
53+
platforms: linux/amd64,linux/arm/v7,linux/arm64
54+
tags: |
55+
bfren/postgresql:latest
56+
bfren/postgresql:${{ steps.version.outputs.contents }}
57+
bfren/postgresql:postgresql13
58+
bfren/postgresql:postgresql13-${{ steps.version.outputs.contents }}
59+
bfren/postgresql:postgresql${{ steps.postgresql_minor.outputs.contents }}
60+
bfren/postgresql:postgresql${{ steps.postgresql_minor.outputs.contents }}-${{ steps.version.outputs.contents }}
61+
bfren/postgresql:postgresql${{ steps.postgresql_build.outputs.contents }}
62+
-
63+
name: Image digest
64+
run: echo ${{ steps.docker_build.outputs.digest }}

.github/workflows/publish-14.yml

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
name: publish-14
2+
3+
on:
4+
release:
5+
types: [published]
6+
workflow_dispatch:
7+
8+
jobs:
9+
publish-14:
10+
runs-on: ubuntu-latest
11+
steps:
12+
-
13+
name: Checkout code
14+
uses: actions/checkout@v2
15+
-
16+
name: Read PostgreSQL version - minor
17+
uses: bfren/read-file@v1
18+
with:
19+
file: ./14/POSTGRESQL_MINOR
20+
id: postgresql_minor
21+
-
22+
name: Read PostgreSQL version - build
23+
uses: bfren/read-file@v1
24+
with:
25+
file: ./14/POSTGRESQL_BUILD
26+
id: postgresql_build
27+
-
28+
name: Read image version
29+
uses: bfren/read-file@v1
30+
with:
31+
file: ./VERSION
32+
id: version
33+
-
34+
name: Set up QEMU
35+
uses: docker/setup-qemu-action@v1
36+
-
37+
name: Set up Docker Buildx
38+
uses: docker/setup-buildx-action@v1
39+
-
40+
name: Login to DockerHub
41+
uses: docker/login-action@v1
42+
with:
43+
username: ${{ secrets.DOCKERHUB_USERNAME }}
44+
password: ${{ secrets.DOCKERHUB_TOKEN }}
45+
-
46+
name: Build and push
47+
id: docker_build
48+
uses: docker/build-push-action@v2
49+
with:
50+
context: .
51+
file: ./14/Dockerfile
52+
push: true
53+
platforms: linux/amd64,linux/arm/v7,linux/arm64
54+
tags: |
55+
bfren/postgresql:postgresql14
56+
bfren/postgresql:postgresql14-${{ steps.version.outputs.contents }}
57+
bfren/postgresql:postgresql${{ steps.postgresql_minor.outputs.contents }}
58+
bfren/postgresql:postgresql${{ steps.postgresql_minor.outputs.contents }}-${{ steps.version.outputs.contents }}
59+
bfren/postgresql:postgresql${{ steps.postgresql_build.outputs.contents }}
60+
-
61+
name: Image digest
62+
run: echo ${{ steps.docker_build.outputs.digest }}
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: delete-workflow-runs
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
days:
7+
description: 'Number of days.'
8+
required: true
9+
default: 60
10+
11+
jobs:
12+
del_old_runs:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Delete old workflow runs
16+
uses: bfren/delete-workflow-runs@main
17+
with:
18+
token: ${{ secrets.GITHUB_TOKEN }}
19+
repository: ${{ github.repository }}
20+
retain_days: ${{ github.event.inputs.days }}

.markdownlint.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"MD013": false,
3+
"MD014": false,
4+
"MD033": false
5+
}

0 commit comments

Comments
 (0)