diff --git a/.forgejo/workflows/build.yml b/.forgejo/workflows/build.yml index 0ca0554..b8838e8 100644 --- a/.forgejo/workflows/build.yml +++ b/.forgejo/workflows/build.yml @@ -1,15 +1,24 @@ on: push: +matrix: + PG_MAJOR_VERSION: + - 17 + DEB_RELEASE: + - bookworm + POSTGIS_VERSiON: + - 3.5.2 + TO> $GITHUB_ENV + + - name: Login to Docker Hub + uses: https://github.com/docker/login-action@v3 + with: + registry: gitea.simcop2387.info + username: simcop2387 + password: ${{ secrets.DOCKER_TOKEN }} + + - name: Build and push + uses: https://github.com/docker/build-push-action@v6 + with: + push: true + tags: ${{ steps.meta.outputs.tags }} + labels: ${{ steps.meta.outputs.labels }} + context: general/ + dockerfile: general/Dockerfile + build-args: | + PG_MAJOR_VERSION=${{ matrix.PG_MAJOR_VERSION }} + DEB_RELEASE=${{ matrix.DEB_RELEASE }} + FMT_DATE=${{ env.FMT_DATE }} + POSTGIS_VERSiON=${{ matrix.POSTGIS_VERSiON }} + TO