LP-2725: disableable go cache

This commit is contained in:
Maxim Yanchuk 2023-12-26 15:23:40 +03:00
parent fb31170009
commit 3b47db723e
2 changed files with 16 additions and 2 deletions

View File

@ -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 }}

View File

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