drone windows switch to docker and do deploy
continuous-integration/drone/push Build was killed Details

This commit is contained in:
Dan Ballard 2021-05-11 12:48:34 -07:00
parent 88a9055fcd
commit fe9830099f
1 changed files with 14 additions and 10 deletions

View File

@ -163,19 +163,20 @@ trigger:
---
kind: pipeline
type: exec
type: docker
name: windows
platform:
os: windows
arch: amd64
#version: 1809
#arch: amd64
version: 1809
clone:
disable: true
steps:
- name: clone
image: openpriv/flutter-desktop:windows-sdk30-fdev2.2rc
environment:
buildbot_key_b64:
from_secret: buildbot_key_b64
@ -193,11 +194,14 @@ steps:
- git checkout $DRONE_COMMIT
- name: fetch
image: openpriv/flutter-desktop:windows-sdk30-fdev2.2rc
commands:
- git describe --tags > VERSION
- powershell -command "Get-Date -Format 'yyyy-MM-dd-HH-mm'" > BUILDDATE
- .\fetch-libcwtch-go.ps1
-
- name: build-windows
image: openpriv/flutter-desktop:windows-sdk30-fdev2.2rc
commands:
- C:\src\flutter\bin\flutter pub get
- C:\src\flutter\bin\flutter build windows
@ -217,19 +221,19 @@ steps:
- dir
- dir deploy
- name: deploy-windows
image: openpriv/flutter-desktop:windows-sdk30-fdev2.2rc
when:
event: push
status: [ success ]
environment:
BUILDFILES_KEY:
from_secret: buildfiles_key_txt
from_secret: buildfiles_key
commands:
- echo "hello"
- dir
- echo $Env:BUILDFILES_KEY > id_rsa
- dir
# TODO: make pscp load a profile with the server key accepted
- C:\\bin\\pscp -P 22 -r -batch -i id_rsa deploy\\* buildfiles@openprivacy.ca:/home/buildfiles/buildfiles/
#- echo $Env:BUILDFILES_KEY > id_rsa
- echo $Env:BUILDFILES_KEY > id_rsab64
- certutil -decode id_rsab64 id_rsa
- #C:\\bin\\pscp -P 22 -r -batch -i id_rsa deploy\\* buildfiles@openprivacy.ca:/home/buildfiles/buildfiles/
- scp -r -o StrictHostKeyChecking=no -i id_rsa deploy\\* buildfiles@openprivacy.ca:/home/buildfiles/buildfiles/
trigger:
repo: flutter/flutter_app