From 3b47db723eb17697da0ffa82c79c4bfce4c6cdf1 Mon Sep 17 00:00:00 2001 From: "maxim.yanchuk" Date: Tue, 26 Dec 2023 15:23:40 +0300 Subject: [PATCH] LP-2725: disableable go cache --- .gitea/actions/plugin/build/action.yml | 12 +++++++++++- .../loop-plugin-with-marketplace-template.yml | 6 +++++- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/.gitea/actions/plugin/build/action.yml b/.gitea/actions/plugin/build/action.yml index 42f0f85..29e3d86 100644 --- a/.gitea/actions/plugin/build/action.yml +++ b/.gitea/actions/plugin/build/action.yml @@ -5,6 +5,9 @@ inputs: go_version: required: false description: 'GO version' + go_cache: + required: false + description: 'For direct disable go-cache if needed' node_version: required: false description: 'Node.js version' @@ -14,13 +17,20 @@ runs: steps: - name: ci/setup-go uses: actions/setup-go@v4 - if: ${{ inputs.go_version }} + if: ${{ inputs.go_version && inputs.go_cache != 'false' }} with: go-version: "${{ inputs.go_version }}" cache-dependency-path: | go.sum server/go.sum + - name: ci/setup-go-wo-cache + uses: actions/setup-go@v4 + if: ${{ inputs.go_version && inputs.go_cache == 'false' }} + with: + go-version: "${{ inputs.go_version }}" + cache: false + - name: ci/setup-node uses: actions/setup-node@v4 if: ${{ inputs.node_version }} diff --git a/.gitea/workflows/loop-plugin-with-marketplace-template.yml b/.gitea/workflows/loop-plugin-with-marketplace-template.yml index 04c37ac..913a8ec 100644 --- a/.gitea/workflows/loop-plugin-with-marketplace-template.yml +++ b/.gitea/workflows/loop-plugin-with-marketplace-template.yml @@ -5,12 +5,15 @@ on: go_version: required: false description: 'GO version' + go_cache: + required: false + description: 'For direct disable go-cache if needed' node_version: required: false description: 'Node.js version' vault_secrets_base_path: required: true - description: 'Базовый путь для секретов проекта в vault' + description: 'Base vault secret path' artifacts_url: required: true description: 'Artifacts URL' @@ -73,6 +76,7 @@ jobs: uses: https://git.wilix.dev/wilix-infra/actions/.gitea/actions/plugin/build@master with: go_version: ${{ inputs.go_version }} + go_cache: ${{ inputs.go_cache }} node_version: ${{ inputs.node_version }} - name: ci/plugin-sign -- 2.40.1