From ba7df030d2157a0067d474a954dcf4b5c36c3da3 Mon Sep 17 00:00:00 2001 From: Layla Manley Date: Thu, 7 Dec 2023 20:52:50 +0100 Subject: [PATCH] Progress --- .drone.yaml | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/.drone.yaml b/.drone.yaml index 8da4f3e..5d3324e 100644 --- a/.drone.yaml +++ b/.drone.yaml @@ -2,18 +2,21 @@ kind: pipeline type: docker name: Build and Release -trigger: - branch: - - main - event: - - tag steps: + - name: Test + image: golang:1.21 + commands: + - sh -c "$(curl --location https://taskfile.dev/install.sh)" -- -d + - task test - name: Build & Package image: golang:1.21 commands: - sh -c "$(curl --location https://taskfile.dev/install.sh)" -- -d - task package + when: + event: + - tag - name: Release image: plugins/gitea-release settings: @@ -23,6 +26,9 @@ steps: repo: layla/gsquash files: - ./dist/gsquash.tar.gz + when: + event: + - tag --- kind: secret name: gitea_api_key