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