forked from cwtch.im/cwtch-ui
fix drone use of env vars so it can pull from forks and actually use the right branch
This commit is contained in:
parent
df43870e61
commit
8f88f614f2
|
@ -187,10 +187,10 @@ steps:
|
||||||
- git init
|
- git init
|
||||||
# -o UserKnownHostsFile=../known_hosts
|
# -o UserKnownHostsFile=../known_hosts
|
||||||
- git config core.sshCommand 'ssh -o StrictHostKeyChecking=no -i ../id_rsa'
|
- git config core.sshCommand 'ssh -o StrictHostKeyChecking=no -i ../id_rsa'
|
||||||
- git remote add origin $DRONE_GIT_SSH_URL
|
- git remote add origin $Env:DRONE_GIT_SSH_URL
|
||||||
- git pull origin trunk
|
- git pull origin trunk
|
||||||
- git fetch --tags
|
- git fetch --tags
|
||||||
- git checkout $DRONE_COMMIT
|
- git checkout $Env:DRONE_COMMIT
|
||||||
|
|
||||||
- name: fetch
|
- name: fetch
|
||||||
image: openpriv/flutter-desktop:windows-sdk30-fdev2.3rc
|
image: openpriv/flutter-desktop:windows-sdk30-fdev2.3rc
|
||||||
|
@ -222,6 +222,9 @@ steps:
|
||||||
|
|
||||||
- name: package-windows
|
- name: package-windows
|
||||||
image: openpriv/nsis:latest
|
image: openpriv/nsis:latest
|
||||||
|
when:
|
||||||
|
event: push
|
||||||
|
status: [ success ]
|
||||||
environment:
|
environment:
|
||||||
pfx:
|
pfx:
|
||||||
from_secret: pfx
|
from_secret: pfx
|
||||||
|
@ -272,3 +275,4 @@ trigger:
|
||||||
branch: trunk
|
branch: trunk
|
||||||
event:
|
event:
|
||||||
- push
|
- push
|
||||||
|
- pull_request
|
||||||
|
|
Loading…
Reference in New Issue