This commit is contained in:
parent
e68a102492
commit
720bd59a83
@ -2,8 +2,10 @@ name: Prod Deploy
|
|||||||
run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀
|
run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
|
tags:
|
||||||
|
- 'releases/*'
|
||||||
branches:
|
branches:
|
||||||
- releases/*
|
- 'releases/*'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
Explore-Gitea-Actions:
|
Explore-Gitea-Actions:
|
||||||
@ -22,8 +24,7 @@ jobs:
|
|||||||
- name: Build Docker Image
|
- name: Build Docker Image
|
||||||
run: |
|
run: |
|
||||||
echo "Building the Docker image..."
|
echo "Building the Docker image..."
|
||||||
branch=${{ gitea.ref_name }}
|
tag_name=${{ gitea.ref_name }}
|
||||||
tag_name=$(git rev-parse HEAD)
|
docker build -t docker.fairclip.cn/memowake/memowake-front:${tag_name} .
|
||||||
docker build -t docker.fairclip.cn/memowake/memowake-front:${branch}-${tag_name} .
|
docker push docker.fairclip.cn/memowake/memowake-front:${tag_name}
|
||||||
docker push docker.fairclip.cn/memowake/memowake-front:${branch}-${tag_name}
|
|
||||||
echo "Docker image built successfully!"
|
echo "Docker image built successfully!"
|
||||||
Loading…
x
Reference in New Issue
Block a user