From 7420a91450a2da766b10e1c2dda9c157106458ad Mon Sep 17 00:00:00 2001 From: Guillaume Lapierre Date: Fri, 8 Nov 2024 11:57:50 +0100 Subject: [PATCH] Workflow to build latest release --- .gitea/workflows/lastreleased.yaml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .gitea/workflows/lastreleased.yaml diff --git a/.gitea/workflows/lastreleased.yaml b/.gitea/workflows/lastreleased.yaml new file mode 100644 index 0000000..7d0f36c --- /dev/null +++ b/.gitea/workflows/lastreleased.yaml @@ -0,0 +1,30 @@ +# +# Build docker image for last released version +# + +name: BuildTag +run-name: ${{ gitea.actor }} running CI in the pipeline 🚀 +on: + push: + schedule: + - cron: "10 2 * * *" + +jobs: + BuildVersion: + env: + RUNNER_TOOL_CACHE: /toolcache + runs-on: cth-ubuntu-latest + steps: + - name: Check out repository code + uses: actions/checkout@v4 + with: + fetch-depth: 0 + - name: Get the latest tag + id: get_last_tag + run: echo "LAST_TAG=$(git describe --tags $(git rev-list --tags --max-count=1))" >> $GITHUB_OUTPUT + - name: Get LAST_TAG + run: | + set -x + echo "${{ steps.get_last_tag.outputs.LAST_TAG }}" + - name: Checkout latest version + run: git checkout ${{ steps.get_last_tag.outputs.LAST_TAG }}