-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #83 from zapier/fix-deploys-upgrade-earthly
fix deploys, upgrade earthly
- Loading branch information
Showing
12 changed files
with
97 additions
and
55 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 |
---|---|---|
|
@@ -2,3 +2,4 @@ | |
!go.mod | ||
!go.sum | ||
!*.go | ||
dist |
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
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,9 @@ | ||
# asdf plugin add earthly https://github.com/YR-ZR0/asdf-earthly | ||
earthly 0.6.30 | ||
earthly 0.8.5 | ||
github-cli 2.36.0 | ||
golang 1.21.3 | ||
skaffold 2.0.3 | ||
helm-cr 1.4.1 | ||
helm-ct 3.7.1 | ||
kubeconform 0.5.0 | ||
minikube 1.32.0 | ||
skaffold 2.10.1 | ||
staticcheck 2023.1.6 |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,39 @@ | ||
#!/usr/bin/env bash | ||
|
||
to_echo() { | ||
if [ "$1" -eq 1 ]; then | ||
echo "$2" | ||
fi | ||
} | ||
|
||
read_tool_versions_write_to_env() { | ||
local -r tool_versions_file="$1" | ||
|
||
# loop over each line of the .tool-versions file | ||
while read -r line; do | ||
# split the line into a bash array using the default space delimeter | ||
IFS=" " read -r -a lineArray <<<"$line" | ||
|
||
# get the key and value from the array, set the key to all uppercase | ||
key="${lineArray[0],,}" | ||
value="${lineArray[1]}" | ||
|
||
# ignore comments, comments always start with # | ||
if [[ ${key:0:1} != "#" ]]; then | ||
full_key="${key/-/_}_tool_version" | ||
export "${full_key}=${value}" | ||
fi | ||
done <"$tool_versions_file" | ||
} | ||
|
||
read_tool_versions_write_to_env '.tool-versions' | ||
|
||
set -x | ||
|
||
earthly $* \ | ||
--CHART_RELEASER_VERSION=${helm_cr_tool_version} \ | ||
--CHART_TESTING_VERSION=${helm_ct_tool_version} \ | ||
--GITHUB_CLI_VERSION=${github_cli_tool_version} \ | ||
--GOLANG_VERSION=${golang_tool_version} \ | ||
--KUBECONFORM_VERSION=${kubeconform_tool_version} \ | ||
--STATICCHECK_VERSION=${staticcheck_tool_version} |
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
minikube-up: | ||
minikube start | ||
minikube addons enable ingress | ||
minikube addons enable registryi | ||
|
||
minikube-reset: | ||
minikube delete --all |
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