Skip to content

Commit 2938c2a

Browse files
Add docker build and push
Add github workflow to run a docker build and push update error message copy
1 parent 6774f31 commit 2938c2a

File tree

2 files changed

+27
-1
lines changed

2 files changed

+27
-1
lines changed

.github/workflows/build.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
on:
2+
push:
3+
paths-ignore:
4+
- "*.md"
5+
- "docker-compose.yml"
6+
- "**.md"
7+
- "**.gitignore"
8+
9+
env:
10+
BUILDKIT_PROGRESS: plain
11+
12+
jobs:
13+
push:
14+
if: (github.ref == 'refs/heads/main')
15+
environment: docker push
16+
runs-on: ubuntu-latest
17+
strategy:
18+
matrix:
19+
version: [13, 14, 15, 16, 17]
20+
steps:
21+
- uses: actions/checkout@v4
22+
- uses: docker/setup-buildx-action@v3
23+
- name: build images
24+
run: |
25+
docker login --username ${{ vars.DOCKERHUB_USERNAME }} --password ${{ secrets.DOCKER_PASSWORD }}
26+
docker buildx build --push --platform linux/amd64,linux/arm64 --tag featheredtoast/discourse-postgres:${{ matrix.version }} --build-arg VERSION=${{ matrix.version }} .

run-postgres.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
set -Ee
33

44
if [ -z "$DB_PASSWORD" ]; then
5-
echo "DB_PASSWORD not set."
5+
echo "Error: DB_PASSWORD not set."
66
exit 1
77
fi
88
# Generate a password if one is not provided

0 commit comments

Comments
 (0)