From 147e92672243ba012a2e7ee73ef2e276e5882470 Mon Sep 17 00:00:00 2001 From: Lynnesbian Date: Sat, 19 Sep 2020 19:01:04 +1000 Subject: [PATCH] let's see if i can publish the builds to s3 --- .drone.yml | 46 +++++++++++------------ .gitignore | 1 + Properties/PublishProfiles/Linux.pubxml | 8 ++++ Properties/PublishProfiles/Windows.pubxml | 8 ++++ 4 files changed, 38 insertions(+), 25 deletions(-) create mode 100644 Properties/PublishProfiles/Linux.pubxml create mode 100644 Properties/PublishProfiles/Windows.pubxml diff --git a/.drone.yml b/.drone.yml index ad9be75..da277d6 100644 --- a/.drone.yml +++ b/.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/ diff --git a/.gitignore b/.gitignore index 43edc99..589219b 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ bin/ obj/ Snootalogue.db wwwroot/Content/* +out/ \ No newline at end of file diff --git a/Properties/PublishProfiles/Linux.pubxml b/Properties/PublishProfiles/Linux.pubxml new file mode 100644 index 0000000..cc50a0d --- /dev/null +++ b/Properties/PublishProfiles/Linux.pubxml @@ -0,0 +1,8 @@ + + + linux-x64 + true + true + out/release/linux + + diff --git a/Properties/PublishProfiles/Windows.pubxml b/Properties/PublishProfiles/Windows.pubxml new file mode 100644 index 0000000..2ea9f6c --- /dev/null +++ b/Properties/PublishProfiles/Windows.pubxml @@ -0,0 +1,8 @@ + + + win-x64 + true + true + out/release/windows + +