let's see if i can publish the builds to s3
Some checks reported errors
continuous-integration/drone/push Build encountered an error
Some checks reported errors
continuous-integration/drone/push Build encountered an error
This commit is contained in:
parent
5be60a4681
commit
147e926722
4 changed files with 38 additions and 25 deletions
46
.drone.yml
46
.drone.yml
|
@ -4,32 +4,28 @@ type: docker
|
||||||
name: default
|
name: default
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: restore-target
|
- name: build-linux
|
||||||
image: drillster/drone-volume-cache
|
|
||||||
volumes:
|
|
||||||
- name: target
|
|
||||||
path: /target
|
|
||||||
settings:
|
|
||||||
restore: true
|
|
||||||
mount:
|
|
||||||
- ./target
|
|
||||||
|
|
||||||
- name: build
|
|
||||||
image: mcr.microsoft.com/dotnet/core/sdk:3.1
|
image: mcr.microsoft.com/dotnet/core/sdk:3.1
|
||||||
commands:
|
commands:
|
||||||
- dotnet build
|
- dotnet publish -p:PublishProfile=Linux
|
||||||
|
- tar czf linux.tar.gz out/release/linux
|
||||||
|
|
||||||
- name: rebuild-target
|
- name: build-windows
|
||||||
image: drillster/drone-volume-cache
|
image: mcr.microsoft.com/dotnet/core/sdk:3.1
|
||||||
volumes:
|
commands:
|
||||||
- name: target
|
- dotnet publish -p:PublishProfile=Windows
|
||||||
path: /target
|
- tar czf windows.tar.gz out/release/windows
|
||||||
|
|
||||||
|
- name: s3-upload
|
||||||
|
image: plugins/s3
|
||||||
settings:
|
settings:
|
||||||
rebuild: true
|
bucket: bune-city
|
||||||
mount:
|
source: "*.tar.gz"
|
||||||
- ./target
|
target: /build/Snootalogue/
|
||||||
|
access_key:
|
||||||
volumes:
|
from_secret: wasabi_access_key
|
||||||
- name: target
|
secret_key:
|
||||||
host:
|
from_secret: wasabi_secret_key
|
||||||
path: /tmp/snootalogue-target
|
path_style: true
|
||||||
|
endpoint: https://s3.us-east-1.wasabisys.com
|
||||||
|
strip-prefix: /out/release/
|
||||||
|
|
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -2,3 +2,4 @@ bin/
|
||||||
obj/
|
obj/
|
||||||
Snootalogue.db
|
Snootalogue.db
|
||||||
wwwroot/Content/*
|
wwwroot/Content/*
|
||||||
|
out/
|
8
Properties/PublishProfiles/Linux.pubxml
Normal file
8
Properties/PublishProfiles/Linux.pubxml
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
<Project>
|
||||||
|
<PropertyGroup>
|
||||||
|
<RuntimeIdentifier>linux-x64</RuntimeIdentifier>
|
||||||
|
<PublishSingleFile>true</PublishSingleFile>
|
||||||
|
<PublishTrimmed>true</PublishTrimmed>
|
||||||
|
<PublishDir>out/release/linux</PublishDir>
|
||||||
|
</PropertyGroup>
|
||||||
|
</Project>
|
8
Properties/PublishProfiles/Windows.pubxml
Normal file
8
Properties/PublishProfiles/Windows.pubxml
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
<Project>
|
||||||
|
<PropertyGroup>
|
||||||
|
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
|
||||||
|
<PublishSingleFile>true</PublishSingleFile>
|
||||||
|
<PublishTrimmed>true</PublishTrimmed>
|
||||||
|
<PublishDir>out/release/windows</PublishDir>
|
||||||
|
</PropertyGroup>
|
||||||
|
</Project>
|
Loading…
Reference in a new issue