mirror of
https://github.com/anchore/syft.git
synced 2025-11-17 16:33:21 +01:00
use annotated tags, update chronicle, fix cache keys (#2154)
Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>
This commit is contained in:
parent
650f71cbe0
commit
40899adb87
8
.github/actions/bootstrap/action.yaml
vendored
8
.github/actions/bootstrap/action.yaml
vendored
@ -45,9 +45,9 @@ runs:
|
|||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
~/go/pkg/mod
|
~/go/pkg/mod
|
||||||
key: ${{ inputs.cache-key-prefix }}-${{ runner.os }}-go-${{ inputs.go-version }}-${{ hashFiles('**/go.sum') }}
|
key: ${{ inputs.cache-key-prefix }}-${{ runner.os }}-go-mod-${{ inputs.go-version }}-${{ hashFiles('**/go.sum') }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ inputs.cache-key-prefix }}-${{ runner.os }}-go-${{ inputs.go-version }}-
|
${{ inputs.cache-key-prefix }}-${{ runner.os }}-go-mod-${{ inputs.go-version }}-
|
||||||
|
|
||||||
- name: (cache-miss) Bootstrap project tools
|
- name: (cache-miss) Bootstrap project tools
|
||||||
shell: bash
|
shell: bash
|
||||||
@ -61,9 +61,9 @@ runs:
|
|||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
~/.cache/go-build
|
~/.cache/go-build
|
||||||
key: ${{ inputs.cache-key-prefix }}-${{ inputs.build-cache-key-prefix }}-${{ runner.os }}-go-${{ inputs.go-version }}-${{ hashFiles('**/go.sum') }}
|
key: ${{ inputs.cache-key-prefix }}-${{ inputs.build-cache-key-prefix }}-${{ runner.os }}-go-build-${{ inputs.go-version }}-${{ hashFiles('**/go.sum') }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ inputs.cache-key-prefix }}-${{ inputs.build-cache-key-prefix }}-${{ runner.os }}-go-${{ inputs.go-version }}-
|
${{ inputs.cache-key-prefix }}-${{ inputs.build-cache-key-prefix }}-${{ runner.os }}-go-build-${{ inputs.go-version }}-
|
||||||
|
|
||||||
- name: (cache-miss) Bootstrap go dependencies
|
- name: (cache-miss) Bootstrap go dependencies
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|||||||
7
.github/workflows/release.yaml
vendored
7
.github/workflows/release.yaml
vendored
@ -10,9 +10,6 @@ on:
|
|||||||
description: tag the latest commit on main with the given version (prefixed with v)
|
description: tag the latest commit on main with the given version (prefixed with v)
|
||||||
required: true
|
required: true
|
||||||
|
|
||||||
env:
|
|
||||||
GO_VERSION: "1.21.x"
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
quality-gate:
|
quality-gate:
|
||||||
environment: release
|
environment: release
|
||||||
@ -123,7 +120,9 @@ jobs:
|
|||||||
|
|
||||||
- name: Tag release
|
- name: Tag release
|
||||||
run: |
|
run: |
|
||||||
git tag ${{ github.event.inputs.version }}
|
git config --global user.name "anchoreci"
|
||||||
|
git config --global user.email "anchoreci@users.noreply.github.com"
|
||||||
|
git tag -a ${{ github.event.inputs.version }} -m "Release ${{ github.event.inputs.version }}"
|
||||||
git push origin --tags
|
git push origin --tags
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|||||||
2
Makefile
2
Makefile
@ -13,7 +13,7 @@ GLOW_CMD = $(TEMP_DIR)/glow
|
|||||||
GOLANGCILINT_VERSION := v1.54.2
|
GOLANGCILINT_VERSION := v1.54.2
|
||||||
GOSIMPORTS_VERSION := v0.3.8
|
GOSIMPORTS_VERSION := v0.3.8
|
||||||
BOUNCER_VERSION := v0.4.0
|
BOUNCER_VERSION := v0.4.0
|
||||||
CHRONICLE_VERSION := v0.7.0
|
CHRONICLE_VERSION := v0.8.0
|
||||||
GORELEASER_VERSION := v1.20.0
|
GORELEASER_VERSION := v1.20.0
|
||||||
YAJSV_VERSION := v1.4.1
|
YAJSV_VERSION := v1.4.1
|
||||||
COSIGN_VERSION := v2.2.0
|
COSIGN_VERSION := v2.2.0
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user