Skip to content

Add Postgres connection pool configuration (#1142) #564

Add Postgres connection pool configuration (#1142)

Add Postgres connection pool configuration (#1142) #564

Workflow file for this run

name: build
on:
push:
branches:
- master
jobs:
windows_images:
name: docker images (windows)
runs-on: windows-latest
steps:
- name: Pull source
uses: actions/checkout@v5
with:
fetch-depth: 0
- name: Login to DockerHub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build docker image
run: |
foreach ($image in "gorse-master", "gorse-server", "gorse-worker", "gorse-in-one") {
docker build -f cmd/$image/Dockerfile.windows `
-t zhenghaoz/${image}:nightly-windowsservercore .
docker image push --all-tags zhenghaoz/$image
}
docker_images:
name: docker images
runs-on: ubuntu-latest
strategy:
matrix:
targets: [default]
steps:
- name: Pull source
uses: actions/checkout@v5
with:
fetch-depth: 0
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
with:
buildkitd-config-inline: |
[worker.oci]
max-parallelism = 1
- name: Login to DockerHub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build docker image
uses: docker/bake-action@v6
with:
source: .
targets: ${{ matrix.targets }}
push: true
env:
AWS_ACCESS_KEY_ID: ${{ secrets.R2_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.R2_SECRET_ACCESS_KEY }}