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 + +