Workflow to build latest release
All checks were successful
BuildMain / BuildLatest (push) Successful in 10m20s
BuildTag / BuildVersion (push) Successful in 10s

This commit is contained in:
Guillaume Lapierre 2024-11-08 11:57:50 +01:00
parent 808e9f66df
commit 7420a91450

View File

@ -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 }}