From 40899adb87949aa7351cdbc257f91a43146c3119 Mon Sep 17 00:00:00 2001 From: Alex Goodman Date: Wed, 20 Sep 2023 10:11:44 -0400 Subject: [PATCH] use annotated tags, update chronicle, fix cache keys (#2154) Signed-off-by: Alex Goodman --- .github/actions/bootstrap/action.yaml | 8 ++++---- .github/workflows/release.yaml | 7 +++---- Makefile | 2 +- 3 files changed, 8 insertions(+), 9 deletions(-) diff --git a/.github/actions/bootstrap/action.yaml b/.github/actions/bootstrap/action.yaml index 8a68cd497..2372a8577 100644 --- a/.github/actions/bootstrap/action.yaml +++ b/.github/actions/bootstrap/action.yaml @@ -45,9 +45,9 @@ runs: with: path: | ~/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: | - ${{ 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 shell: bash @@ -61,9 +61,9 @@ runs: with: path: | ~/.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: | - ${{ 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 shell: bash diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 4596748e8..330ba4eda 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -10,9 +10,6 @@ on: description: tag the latest commit on main with the given version (prefixed with v) required: true -env: - GO_VERSION: "1.21.x" - jobs: quality-gate: environment: release @@ -123,7 +120,9 @@ jobs: - name: Tag release 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 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/Makefile b/Makefile index edd3732af..55df25a23 100644 --- a/Makefile +++ b/Makefile @@ -13,7 +13,7 @@ GLOW_CMD = $(TEMP_DIR)/glow GOLANGCILINT_VERSION := v1.54.2 GOSIMPORTS_VERSION := v0.3.8 BOUNCER_VERSION := v0.4.0 -CHRONICLE_VERSION := v0.7.0 +CHRONICLE_VERSION := v0.8.0 GORELEASER_VERSION := v1.20.0 YAJSV_VERSION := v1.4.1 COSIGN_VERSION := v2.2.0