From cd4b1efb3708f08a627cc2c6b9dae04d1d9a9238 Mon Sep 17 00:00:00 2001 From: itzaname Date: Tue, 10 Aug 2021 21:31:13 -0400 Subject: [PATCH] Add artifact uploading --- .drone.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.drone.yml b/.drone.yml index d4bdbfb..f6f8760 100644 --- a/.drone.yml +++ b/.drone.yml @@ -15,7 +15,7 @@ steps: - cp /etc/ssl/certs/ca-certificates.crt . - CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o rbxcompiler ./cmd/rbxcompiler - - name: push-production + - name: push-docker image: plugins/docker:19 settings: username: @@ -28,4 +28,12 @@ steps: - latest when: branch: - - master \ No newline at end of file + - master + + - name: push-artifact + image: curlimages/curl:7.78.0 + commands: + - curl -u ${NEXUS_USER}:${NEXUS_PASSWORD} --upload-file rbxcompiler https://nexus.itzana.me/repository/public/artifacts/itzaname/rbxcompiler-amd64-linux + when: + branch: + - master