modify gitea
All checks were successful
Gitea Actions Demo / build-and-push (push) Successful in 11s
All checks were successful
Gitea Actions Demo / build-and-push (push) Successful in 11s
This commit is contained in:
@@ -16,11 +16,12 @@ jobs:
|
|||||||
- name: Determine Image Tag
|
- name: Determine Image Tag
|
||||||
id: vars
|
id: vars
|
||||||
run: |
|
run: |
|
||||||
|
version=$(python -c "import sys; sys.path.append('./backend'); from config.version import BASE_VERSION; print(BASE_VERSION)")
|
||||||
current_date=$(date +%Y%m%d)
|
current_date=$(date +%Y%m%d)
|
||||||
if [ "${{ gitea.ref }}" == "refs/heads/master" ]; then
|
if [ "${{ gitea.ref }}" == "refs/heads/master" ]; then
|
||||||
echo "tag=latest-$current_date" >> $GITHUB_OUTPUT
|
echo "tag=latest-$version-$current_date" >> $GITHUB_OUTPUT
|
||||||
else
|
else
|
||||||
echo "tag=next-$current_date" >> $GITHUB_OUTPUT
|
echo "tag=next-$version-$current_date" >> $GITHUB_OUTPUT
|
||||||
fi
|
fi
|
||||||
|
|
||||||
- name: Resolve Gitea Server IP
|
- name: Resolve Gitea Server IP
|
||||||
|
|||||||
Reference in New Issue
Block a user