feat: PROD_URL
This commit is contained in:
parent
a1cae99c41
commit
0d6230cda7
1
.env
1
.env
@ -1 +1,2 @@
|
||||
PROD_URL=chat.gmoker.com
|
||||
IMAGEAPP=docker.io/vectorim/element-web:v1.11.65
|
||||
|
@ -1,15 +1,20 @@
|
||||
on: push
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: test
|
||||
deploy:
|
||||
runs-on: debian
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- name: setup env
|
||||
run: |
|
||||
. ./.env
|
||||
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"
|
||||
fi
|
||||
cat <<EOF >> .env
|
||||
BASE_URL="${{ gitea.ref_name }}.$(tr / '\n' <<< "${{ gitea.repository }}" | tac | tr '\n' .)k8s.gmoker.com"
|
||||
BASE_URL="$BASE_URL"
|
||||
EOF
|
||||
cat .env
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user