parent
1af1e594ba
commit
09dcfdac7a
3 changed files with 7 additions and 6 deletions
|
@ -8,7 +8,7 @@ jobs:
|
|||
- name: setup env
|
||||
run: |
|
||||
. ./.env || true
|
||||
if [ "${{ gitea.ref_name }}" == prod ] && [ -n "$PROD_URL" ]; then
|
||||
if [ "${{ gitea.ref_name }}" = prod ] && [ -n "$PROD_URL" ]; then
|
||||
BASE_URL="$PROD_URL"
|
||||
else
|
||||
BASE_URL="${{ gitea.ref_name }}.$(tr / '\n' <<< "${{ gitea.repository }}" | tac | tr '\n' .)k8s.gmoker.com"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue