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
|
||||
|
||||
steps:
|
||||
- name: restore-target
|
||||
image: drillster/drone-volume-cache
|
||||
volumes:
|
||||
- name: target
|
||||
path: /target
|
||||
settings:
|
||||
restore: true
|
||||
mount:
|
||||
- ./target
|
||||
|
||||
- name: build
|
||||
- name: build-linux
|
||||
image: mcr.microsoft.com/dotnet/core/sdk:3.1
|
||||
commands:
|
||||
- dotnet build
|
||||
- dotnet publish -p:PublishProfile=Linux
|
||||
- tar czf linux.tar.gz out/release/linux
|
||||
|
||||
- name: rebuild-target
|
||||
image: drillster/drone-volume-cache
|
||||
volumes:
|
||||
- name: target
|
||||
path: /target
|
||||
- name: build-windows
|
||||
image: mcr.microsoft.com/dotnet/core/sdk:3.1
|
||||
commands:
|
||||
- dotnet publish -p:PublishProfile=Windows
|
||||
- tar czf windows.tar.gz out/release/windows
|
||||
|
||||
- name: s3-upload
|
||||
image: plugins/s3
|
||||
settings:
|
||||
rebuild: true
|
||||
mount:
|
||||
- ./target
|
||||
|
||||
volumes:
|
||||
- name: target
|
||||
host:
|
||||
path: /tmp/snootalogue-target
|
||||
bucket: bune-city
|
||||
source: "*.tar.gz"
|
||||
target: /build/Snootalogue/
|
||||
access_key:
|
||||
from_secret: wasabi_access_key
|
||||
secret_key:
|
||||
from_secret: wasabi_secret_key
|
||||
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/
|
||||
Snootalogue.db
|
||||
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