let's see if i can publish the builds to s3
Some checks reported errors
continuous-integration/drone/push Build encountered an error

This commit is contained in:
Lynne Megido 2020-09-19 19:01:04 +10:00
parent 5be60a4681
commit 147e926722
Signed by: lynnesbian
GPG key ID: F0A184B5213D9F90
4 changed files with 38 additions and 25 deletions

View file

@ -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
View file

@ -2,3 +2,4 @@ bin/
obj/
Snootalogue.db
wwwroot/Content/*
out/

View file

@ -0,0 +1,8 @@
<Project>
<PropertyGroup>
<RuntimeIdentifier>linux-x64</RuntimeIdentifier>
<PublishSingleFile>true</PublishSingleFile>
<PublishTrimmed>true</PublishTrimmed>
<PublishDir>out/release/linux</PublishDir>
</PropertyGroup>
</Project>

View file

@ -0,0 +1,8 @@
<Project>
<PropertyGroup>
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
<PublishSingleFile>true</PublishSingleFile>
<PublishTrimmed>true</PublishTrimmed>
<PublishDir>out/release/windows</PublishDir>
</PropertyGroup>
</Project>