Skip to content

Commit

Permalink
ci: install go in the container
Browse files Browse the repository at this point in the history
Signed-off-by: Philippe Scorsolini <p.scorsolini@gmail.com>
  • Loading branch information
phisco committed Apr 20, 2024
1 parent 963d5d3 commit 8333482
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 24 deletions.
1 change: 1 addition & 0 deletions .github/renovate.json5
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@
// Post-upgrade tasks that are executed before a commit is made by Renovate.
"commands": [
"git submodule update --init",
"install-tool golang $(grep -oP '^go \\K.+' go.mod)",
"make generate"
],
fileFilters: ["**/*"],
Expand Down
25 changes: 1 addition & 24 deletions .github/workflows/renovate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,29 +25,6 @@ jobs:
- name: Validate Renovate JSON
run: npx --yes --package renovate -- renovate-config-validator

- name: Setup Go
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5
with:
go-version: ${{ env.GO_VERSION }}

- name: Find the Go Build Cache
id: go
run: echo "cache=$(make go.cachedir)" >> $GITHUB_OUTPUT

- name: Cache the Go Build Cache
uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2 # v4
with:
path: ${{ steps.go.outputs.cache }}
key: ${{ runner.os }}-build-check-diff-${{ hashFiles('**/go.sum') }}
restore-keys: ${{ runner.os }}-build-check-diff-

- name: Cache Go Dependencies
uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2 # v4
with:
path: .work/pkg
key: ${{ runner.os }}-pkg-${{ hashFiles('**/go.sum') }}
restore-keys: ${{ runner.os }}-pkg-

- name: Get token
id: get-github-app-token
uses: actions/create-github-app-token@7bfa3a4717ef143a604ee0a99d859b8886a96d00 # v1
Expand All @@ -61,8 +38,8 @@ jobs:
RENOVATE_REPOSITORIES: ${{ github.repository }}
# Use GitHub API to create commits
RENOVATE_PLATFORM_COMMIT: "true"
RENOVATE_ALLOWED_POST_UPGRADE_COMMANDS: '["^git submodule update --init$", "^make generate$"]'
LOG_LEVEL: "debug"
RENOVATE_ALLOWED_POST_UPGRADE_COMMANDS: '["^git submodule update --init$", "^make generate$", "^install-tool golang \\$\\(grep -oP \"\\^go \\\\K\\.\\+\" go\\.mod\\)$"]'
with:
configurationFile: .github/renovate.json5
token: '${{ steps.get-github-app-token.outputs.token }}'

0 comments on commit 8333482

Please sign in to comment.