From f5e19ed357198caf0c3142cc47932725d7c65b34 Mon Sep 17 00:00:00 2001 From: Ryan Voots Date: Thu, 8 May 2025 10:41:33 -0400 Subject: [PATCH] Actions need different style here, used to woodpecker still --- .forgejo/workflows/build.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.forgejo/workflows/build.yml b/.forgejo/workflows/build.yml index eab1f90..e1e96ac 100644 --- a/.forgejo/workflows/build.yml +++ b/.forgejo/workflows/build.yml @@ -4,17 +4,24 @@ on: jobs: build-base: runs-on: self-hosted + matrix: + - PG_MAJOR_VERSION: + - 17 + - DEB_RELEASE: + - bookworm steps: - name: checkout uses: actions/checkout@v4 - name: buildx-base uses: https://github.com/docker/setup-buildx-action@v3 + - name: setup variables + run: echo "FMT_DATE=2025-05-11" >> $GITHUB_ENV - name: Build and push uses: https://github.com/docker/build-push-action@v6 with: push: true tags: - - gitea.simcop2387.info/simcop2387/pg-container-base:${PG_MAJOR-VERSION}-${DEB_RELEASE} - - gitea.simcop2387.info/simcop2387/pg-container-base:${PG_MAJOR-VERSION}-${DEB_RELEASE}-${FMT_DATE} + - gitea.simcop2387.info/simcop2387/pg-container-base:{{ env.PG_MAJOR_VERSION }}-{{ env.DEB_RELEASE }} + - gitea.simcop2387.info/simcop2387/pg-container-base:{{ env.PG_MAJOR_VERSION }}-{{ env.DEB_RELEASE }}-{{ env.FMT_DATE }} context: base/ dockerfile: base/Dockerfile