From f71211c0b9e785894819ebbbc48a3b0752355352 Mon Sep 17 00:00:00 2001 From: Carl Tibule Date: Mon, 1 Apr 2024 22:56:25 -0500 Subject: [PATCH] Fixed wrong reference to ref, add force remove of file --- .woodpecker/.api_build.yaml | 2 +- .woodpecker/.api_uploadimage.yaml | 6 +++--- .woodpecker/.web_uploadimage.yaml | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.woodpecker/.api_build.yaml b/.woodpecker/.api_build.yaml index a21727e..b360d10 100644 --- a/.woodpecker/.api_build.yaml +++ b/.woodpecker/.api_build.yaml @@ -1,7 +1,7 @@ when: - event: [push, pull_request, tag] branch: [api/*] - refs: [ref/tags/APIDEV-*, ref/tags/API-*] + ref: [ref/tags/APIDEV-*, ref/tags/API-*] steps: - name: (YABA.API) Build and run tests when: diff --git a/.woodpecker/.api_uploadimage.yaml b/.woodpecker/.api_uploadimage.yaml index faf892a..c4d2c73 100644 --- a/.woodpecker/.api_uploadimage.yaml +++ b/.woodpecker/.api_uploadimage.yaml @@ -1,13 +1,13 @@ when: - event: tag - refs: [ref/tags/APIDEV-*, ref/tags/API-*] + ref: [ref/tags/APIDEV-*, ref/tags/API-*] steps: - name: (YABA.API) Determining Docker image version number (dev) when: - ref: refs/tags/APIDEV-* image: alpine:latest commands: - - rm tags.txt + - rm -f tags.txt - echo ${CI_COMMIT_TAG} | sed -e "s/^APIDEV-//" >> tags.txt - echo "latest-dev" - name: (YABA.API) Determining Docker image version number (prod) @@ -15,7 +15,7 @@ steps: when: - ref: refs/tags/API-* commands: - - rm tags.txt + - rm -f tags.txt - echo ${CI_COMMIT_TAG} | sed -e "s/^API-//" >> tags.txt - echo "latest" - name: (YABA.API) Package and Upload Docker Image diff --git a/.woodpecker/.web_uploadimage.yaml b/.woodpecker/.web_uploadimage.yaml index ca53cd5..cde4b30 100644 --- a/.woodpecker/.web_uploadimage.yaml +++ b/.woodpecker/.web_uploadimage.yaml @@ -1,13 +1,13 @@ when: - event: tag - refs: [ref/tags/WEBDEV-*, ref/tags/WEB-*] + ref: [ref/tags/WEBDEV-*, ref/tags/WEB-*] steps: - name: (YABA.Web) Determining Docker image version number (dev) when: - refs: refs/tags/WEBDEV-* image: alpine:latest commands: - - rm tags.txt + - rm -f tags.txt - echo ${CI_COMMIT_TAG} | sed -e "s/^WEBDEV-//" >> tags.txt - echo "latest-dev" - name: (YABA.Web) Determining Docker image version number (prod) @@ -15,7 +15,7 @@ steps: - refs: refs/tags/WEB-* image: alpine:latest commands: - - rm tags.txt + - rm -f tags.txt - echo ${CI_COMMIT_TAG} | sed -e "s/^WEB-//" >> tags.txt - echo "latest" - name: (YABA.Web) Package and Upload Docker Image