chore: standardize branch names to master and streamline environment variable definition.
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
This commit is contained in:
@@ -12,7 +12,7 @@ steps:
|
||||
password:
|
||||
from_secret: gitea_token
|
||||
when:
|
||||
branch: main
|
||||
branch: master
|
||||
event: push
|
||||
|
||||
# 2. Deploy via SSH
|
||||
@@ -24,11 +24,7 @@ steps:
|
||||
port: 22
|
||||
key:
|
||||
from_secret: ssh_key
|
||||
# Langsung masukkan secret ke dalam settings yang didukung plugin drone-ssh
|
||||
envs:
|
||||
- GITEA_USER
|
||||
- GITEA_TOKEN
|
||||
# Definisikan isi envs tersebut di sini (cara ini didukung plugin)
|
||||
envs: [ GITEA_USER, GITEA_TOKEN ]
|
||||
gitea_user:
|
||||
from_secret: gitea_user
|
||||
gitea_token:
|
||||
@@ -40,5 +36,5 @@ steps:
|
||||
- docker compose up -d --remove-orphans
|
||||
- docker image prune -f
|
||||
when:
|
||||
branch: main
|
||||
branch: master
|
||||
event: push
|
||||
Reference in New Issue
Block a user