Add GITEA_TOKEN support for HTTPS deployment
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
12
.drone.yml
12
.drone.yml
@@ -37,8 +37,14 @@ steps:
|
||||
key:
|
||||
from_secret: ssh_private_key
|
||||
port: 22
|
||||
envs:
|
||||
- GITEA_TOKEN
|
||||
script:
|
||||
- export GITEA_TOKEN=$GITEA_TOKEN
|
||||
- /opt/deploy-scripts/deploy-nuxt.sh staging main
|
||||
environment:
|
||||
GITEA_TOKEN:
|
||||
from_secret: gitea_token
|
||||
|
||||
# Step 4: Deploy to production (manual trigger only)
|
||||
- name: deploy-production
|
||||
@@ -57,8 +63,14 @@ steps:
|
||||
key:
|
||||
from_secret: ssh_private_key
|
||||
port: 22
|
||||
envs:
|
||||
- GITEA_TOKEN
|
||||
script:
|
||||
- export GITEA_TOKEN=$GITEA_TOKEN
|
||||
- /opt/deploy-scripts/deploy-nuxt.sh production main
|
||||
environment:
|
||||
GITEA_TOKEN:
|
||||
from_secret: gitea_token
|
||||
|
||||
# Step 5: Notification
|
||||
- name: notify
|
||||
|
||||
Reference in New Issue
Block a user