This commit is contained in:
Junhui Chen 2025-07-14 13:07:18 +08:00
parent 6a9b5c2f6a
commit 1cdb8c3e10

View File

@ -4,8 +4,6 @@ on:
push: push:
tags: tags:
- 'releases/*' - 'releases/*'
branches:
- 'releases/*'
jobs: jobs:
Explore-Gitea-Actions: Explore-Gitea-Actions:
@ -24,9 +22,8 @@ jobs:
- name: Build Docker Image - name: Build Docker Image
run: | run: |
echo "Building the Docker image..." echo "Building the Docker image..."
# replace / to - # tag_name=${{ gitea.ref_name }}
tag_name=${{ gitea.ref_name }} # tag_name=latest
tag_name=${tag_name//\//-}
docker build -t docker.fairclip.cn/memowake/memowake-front:${tag_name} . docker build -t docker.fairclip.cn/memowake/memowake-front:${tag_name} .
docker push docker.fairclip.cn/memowake/memowake-front:${tag_name} docker push docker.fairclip.cn/memowake/memowake-front:${tag_name}
echo "Docker image built successfully!" echo "Docker image built successfully!"