-
Notifications
You must be signed in to change notification settings - Fork 531
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Chore: remove hardcoded go version (#5258)
* Chore: Rmove hardcoded go version * use mimir build image as reference * fix comments * address comments * Revert "address comments" This reverts commit c06e3f3. * add makefile * workflow fix
- Loading branch information
1 parent
aff210a
commit 7d7c404
Showing
7 changed files
with
60 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,13 +10,41 @@ concurrency: | |
cancel-in-progress: true | ||
|
||
jobs: | ||
prepare: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out repository | ||
uses: actions/checkout@v3 | ||
- name: Get build image from Makefile | ||
id: build_image_step | ||
run: echo "build_image=$(make print-build-image)" >> "$GITHUB_OUTPUT" | ||
outputs: | ||
build_image: ${{ steps.build_image_step.outputs.build_image }} | ||
|
||
goversion: | ||
runs-on: ubuntu-latest | ||
needs: prepare | ||
container: | ||
image: ${{ needs.prepare.outputs.build_image }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Run Git Config | ||
run: git config --global --add safe.directory '*' | ||
- name: Get Go Version | ||
id: go-version | ||
run: | | ||
echo "version=$(make BUILD_IN_CONTAINER=false print-go-version)" >> "$GITHUB_OUTPUT" | ||
outputs: | ||
version: ${{ steps.go-version.outputs.version }} | ||
|
||
compare-manifests: | ||
runs-on: ubuntu-latest | ||
needs: goversion | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-go@v4 | ||
with: | ||
go-version: '1.20.5' | ||
go-version: ${{ needs.goversion.outputs.version }} | ||
- uses: helm/[email protected] | ||
- name: Download yq | ||
uses: dsaltares/fetch-gh-release-asset@a40c8b4a0471f9ab81bdf73a010f74cc51476ad4 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
FROM golang:1.20.5 | ||
ARG BUILD_IMAGE # Use ./compose-up.sh to build this image. | ||
FROM $BUILD_IMAGE | ||
ENV CGO_ENABLED=0 | ||
RUN go install github.com/go-delve/delve/cmd/[email protected] | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
FROM golang:1.20.5 | ||
ARG BUILD_IMAGE # Use ./compose-up.sh to build this image. | ||
FROM $BUILD_IMAGE | ||
ENV CGO_ENABLED=0 | ||
RUN go install github.com/go-delve/delve/cmd/[email protected] | ||
|
||
|