Add Postgres connection pool configuration (#1142) #564
This file contains hidden or 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
| 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 }} |