Workflow to build latest release
This commit is contained in:
parent
808e9f66df
commit
7420a91450
30
.gitea/workflows/lastreleased.yaml
Normal file
30
.gitea/workflows/lastreleased.yaml
Normal 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 }}
|
Loading…
Reference in New Issue
Block a user