LP-2725: disableable go cache #7
|
@ -5,6 +5,9 @@ inputs:
|
||||||
go_version:
|
go_version:
|
||||||
required: false
|
required: false
|
||||||
description: 'GO version'
|
description: 'GO version'
|
||||||
|
go_cache:
|
||||||
|
required: false
|
||||||
|
description: 'For direct disable go-cache if needed'
|
||||||
node_version:
|
node_version:
|
||||||
required: false
|
required: false
|
||||||
description: 'Node.js version'
|
description: 'Node.js version'
|
||||||
|
@ -14,13 +17,20 @@ runs:
|
||||||
steps:
|
steps:
|
||||||
- name: ci/setup-go
|
- name: ci/setup-go
|
||||||
uses: actions/setup-go@v4
|
uses: actions/setup-go@v4
|
||||||
if: ${{ inputs.go_version }}
|
if: ${{ inputs.go_version && inputs.go_cache != 'false' }}
|
||||||
with:
|
with:
|
||||||
go-version: "${{ inputs.go_version }}"
|
go-version: "${{ inputs.go_version }}"
|
||||||
cache-dependency-path: |
|
cache-dependency-path: |
|
||||||
go.sum
|
go.sum
|
||||||
server/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
|
- name: ci/setup-node
|
||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@v4
|
||||||
if: ${{ inputs.node_version }}
|
if: ${{ inputs.node_version }}
|
||||||
|
|
|
@ -5,12 +5,15 @@ on:
|
||||||
go_version:
|
go_version:
|
||||||
required: false
|
required: false
|
||||||
description: 'GO version'
|
description: 'GO version'
|
||||||
|
go_cache:
|
||||||
|
required: false
|
||||||
|
description: 'For direct disable go-cache if needed'
|
||||||
node_version:
|
node_version:
|
||||||
required: false
|
required: false
|
||||||
description: 'Node.js version'
|
description: 'Node.js version'
|
||||||
vault_secrets_base_path:
|
vault_secrets_base_path:
|
||||||
required: true
|
required: true
|
||||||
description: 'Базовый путь для секретов проекта в vault'
|
description: 'Base vault secret path'
|
||||||
artifacts_url:
|
artifacts_url:
|
||||||
required: true
|
required: true
|
||||||
description: 'Artifacts URL'
|
description: 'Artifacts URL'
|
||||||
|
@ -73,6 +76,7 @@ jobs:
|
||||||
uses: https://git.wilix.dev/wilix-infra/actions/.gitea/actions/plugin/build@master
|
uses: https://git.wilix.dev/wilix-infra/actions/.gitea/actions/plugin/build@master
|
||||||
with:
|
with:
|
||||||
go_version: ${{ inputs.go_version }}
|
go_version: ${{ inputs.go_version }}
|
||||||
|
go_cache: ${{ inputs.go_cache }}
|
||||||
node_version: ${{ inputs.node_version }}
|
node_version: ${{ inputs.node_version }}
|
||||||
|
|
||||||
- name: ci/plugin-sign
|
- name: ci/plugin-sign
|
||||||
|
|
Loading…
Reference in New Issue
Block a user