⬆️ Bump go to 1.20.2 (#162)

* Bump go to 1.20.2

Signed-off-by: Itxaka <itxaka.garcia@spectrocloud.com>

* Bump go-dependant packages

Signed-off-by: Itxaka <itxaka.garcia@spectrocloud.com>

* 🐛 Fix package version including the final dash for the build number

Signed-off-by: Itxaka <itxaka.garcia@spectrocloud.com>

---------

Signed-off-by: Itxaka <itxaka.garcia@spectrocloud.com>
This commit is contained in:
Itxaka
2023-03-29 18:47:42 +02:00
committed by GitHub
parent b321f72e26
commit b83e8f5c0c
29 changed files with 38 additions and 39 deletions

View File

@@ -1,23 +1,22 @@
{{ if eq .Values.init "systemd" }} {{ if eq .Values.init "systemd" }}
image: golang:1.18 image: golang:1.20
prelude: prelude:
- apt-get update - apt-get update
- apt-get install -y git curl systemd - apt-get install -y git curl systemd
{{ else }} {{ else }}
image: golang:1.18-alpine image: golang:1.20-alpine
prelude: prelude:
- apk add git curl openrc bash - apk add git curl openrc bash
{{ end }} {{ end }}
- curl -sfL https://get.k3s.io > installer.sh - curl -sfL https://get.k3s.io > installer.sh
steps: steps:
- bash installer.sh - PACKAGE_VERSION=${PACKAGE_VERSION%\-*} && export INSTALL_K3S_VERSION=$PACKAGE_VERSION && bash installer.sh
- bash installer.sh agent - PACKAGE_VERSION=${PACKAGE_VERSION%\-*} && export INSTALL_K3S_VERSION=$PACKAGE_VERSION && bash installer.sh agent
- mkdir -p /etc/rancher/k3s/ && touch /etc/rancher/k3s/.keep - mkdir -p /etc/rancher/k3s/ && touch /etc/rancher/k3s/.keep
exclude: exclude:
- etc/rancher/k3s/k3s.env - etc/rancher/k3s/k3s.env
- etc/rancher/k3s/k3s-agent.env - etc/rancher/k3s/k3s-agent.env
env: env:
- INSTALL_K3S_VERSION={{.Values.version}}
- INSTALL_K3S_SKIP_START="true" - INSTALL_K3S_SKIP_START="true"
- INSTALL_K3S_SKIP_ENABLE="true" - INSTALL_K3S_SKIP_ENABLE="true"

View File

@@ -1,9 +1,9 @@
packages: packages:
- name: "k3s-systemd" - name: "k3s-systemd"
category: "osbuilder-bundles" category: "osbuilder-bundles"
version: "v1.21.14+k3s1" version: "v1.21.14+k3s1-1"
init: systemd init: systemd
- name: "k3s-openrc" - name: "k3s-openrc"
category: "osbuilder-bundles" category: "osbuilder-bundles"
version: "v1.21.14+k3s1" version: "v1.21.14+k3s1-1"
init: openrc init: openrc

View File

@@ -1,17 +1,17 @@
{{ if .Values.init }} {{ if .Values.init }}
{{ if eq .Values.init "systemd" }} {{ if eq .Values.init "systemd" }}
image: golang:1.18 image: golang:1.20
prelude: prelude:
- apt-get update - apt-get update
- apt-get install -y git - apt-get install -y git
{{ else }} {{ else }}
image: golang:1.18-alpine image: golang:1.20-alpine
prelude: prelude:
- apk add git - apk add git
{{ end }} {{ end }}
- git clone https://github.com/kairos-io/provider-kairos - git clone https://github.com/kairos-io/provider-kairos
- | - |
PACKAGE_VERSION=${PACKAGE_VERSION%\+*} && \ PACKAGE_VERSION=${PACKAGE_VERSION%\-*} && \
cd provider-kairos && git checkout v$PACKAGE_VERSION cd provider-kairos && git checkout v$PACKAGE_VERSION
steps: steps:
- mkdir -p /system/providers - mkdir -p /system/providers

View File

@@ -1,7 +1,7 @@
packages: packages:
- name: "provider-kairos" - name: "provider-kairos"
category: "bundles" category: "bundles"
version: "1.6.1" version: "1.6.1-1"
labels: labels:
github.repo: "provider-kairos" github.repo: "provider-kairos"
github.owner: "kairos-io" github.owner: "kairos-io"

View File

@@ -1,6 +1,6 @@
name: "elemental-cli" name: "elemental-cli"
category: "system" category: "system"
version: "0.2.0-1" version: "0.2.0-2"
bin_name: "elemental" bin_name: "elemental"
fips: false fips: false
labels: labels:

View File

@@ -12,7 +12,7 @@ env:
- LDFLAGS="-s -w -X github.com/kairos-io/immucore/internal/version.Version=v${PACKAGE_VERSION}" - LDFLAGS="-s -w -X github.com/kairos-io/immucore/internal/version.Version=v${PACKAGE_VERSION}"
steps: steps:
- | - |
PACKAGE_VERSION=${PACKAGE_VERSION%\+*} && \ PACKAGE_VERSION=${PACKAGE_VERSION%\-*} && \
cd go/src/github.com/${GITHUB_ORG}/{{ .Values.name }}/ && git checkout v"${PACKAGE_VERSION}" -b build && go build -o {{ .Values.name }} -ldflags="${LDFLAGS}" && mv {{.Values.name}} /usr/bin/ cd go/src/github.com/${GITHUB_ORG}/{{ .Values.name }}/ && git checkout v"${PACKAGE_VERSION}" -b build && go build -o {{ .Values.name }} -ldflags="${LDFLAGS}" && mv {{.Values.name}} /usr/bin/
- chmod +x /usr/bin/{{.Values.name}} - chmod +x /usr/bin/{{.Values.name}}
includes: includes:

View File

@@ -1,6 +1,6 @@
name: "immucore" name: "immucore"
category: "system" category: "system"
version: "0.0.15" version: "0.0.15-1"
labels: labels:
github.repo: "immucore" github.repo: "immucore"
autobump.revdeps: "true" autobump.revdeps: "true"

View File

@@ -16,7 +16,7 @@ env:
- CGO_ENABLED=0 - CGO_ENABLED=0
steps: steps:
- | - |
PACKAGE_VERSION=${PACKAGE_VERSION%\+*} && \ PACKAGE_VERSION=${PACKAGE_VERSION%\-*} && \
mkdir -p /system/discovery && \ mkdir -p /system/discovery && \
cd go/src/github.com/${GITHUB_ORG}/{{ .Values.name }}/ && go build -o kcrypt-discovery-challenger ./cmd/discovery/main.go && mv kcrypt-discovery-challenger /system/discovery cd go/src/github.com/${GITHUB_ORG}/{{ .Values.name }}/ && go build -o kcrypt-discovery-challenger ./cmd/discovery/main.go && mv kcrypt-discovery-challenger /system/discovery
- chmod +x /system/discovery/kcrypt-discovery-challenger - chmod +x /system/discovery/kcrypt-discovery-challenger

View File

@@ -1,7 +1,7 @@
name: kcrypt-challenger name: kcrypt-challenger
category: system category: system
live: "yes" live: "yes"
version: "0.2.3" version: "0.2.3-1"
labels: labels:
github.repo: "kcrypt-challenger" github.repo: "kcrypt-challenger"
github.owner: "kairos-io" github.owner: "kairos-io"

View File

@@ -11,7 +11,7 @@ env:
- CGO_ENABLED=0 - CGO_ENABLED=0
steps: steps:
- | - |
PACKAGE_VERSION=${PACKAGE_VERSION%\+*} && \ PACKAGE_VERSION=${PACKAGE_VERSION%\-*} && \
cd go/src/github.com/${GITHUB_ORG}/{{ .Values.name }}/ && git checkout v"${PACKAGE_VERSION}" -b build && go build -ldflags="-w -s" && mv {{.Values.name}} /usr/bin/ cd go/src/github.com/${GITHUB_ORG}/{{ .Values.name }}/ && git checkout v"${PACKAGE_VERSION}" -b build && go build -ldflags="-w -s" && mv {{.Values.name}} /usr/bin/
- chmod +x /usr/bin/{{.Values.name}} - chmod +x /usr/bin/{{.Values.name}}
includes: includes:

View File

@@ -1,6 +1,6 @@
name: kcrypt name: kcrypt
category: system category: system
version: "0.5.1" version: "0.5.1-1"
labels: labels:
github.repo: "kcrypt" github.repo: "kcrypt"
autobump.revdeps: "true" autobump.revdeps: "true"

View File

@@ -2,14 +2,14 @@ packages:
- name: toolchain-go - name: toolchain-go
category: development category: development
variant: "alpine" variant: "alpine"
version: "1.18+1" version: "1.20.2"
tag: "1.18" tag: "1.20.2"
hidden: true hidden: true
- name: toolchain-go-ubuntu - name: toolchain-go-ubuntu
variant: "" variant: ""
category: development category: development
version: "1.18+1" version: "1.20.2"
tag: "1.18" tag: "1.20.2"
hidden: true hidden: true
- name: toolchain-go - name: toolchain-go
category: development category: development

View File

@@ -6,7 +6,7 @@ requires:
category: "development" category: "development"
version: ">=0" version: ">=0"
prelude: prelude:
- wget https://github.com/$GITHUB_OWNER/$GITHUB_REPO/releases/download/v{{.Values.version}}/{{.Values.name}}-linux-{{.Values.arch}} -O earthly - PACKAGE_VERSION=${PACKAGE_VERSION%\-*} && wget https://github.com/$GITHUB_OWNER/$GITHUB_REPO/releases/download/v$PACKAGE_VERSION/{{.Values.name}}-linux-{{.Values.arch}} -O earthly
env: env:
- GITHUB_OWNER={{ ( index .Values.labels "github.owner" ) }} - GITHUB_OWNER={{ ( index .Values.labels "github.owner" ) }}
- GITHUB_REPO={{ ( index .Values.labels "github.repo" ) }} - GITHUB_REPO={{ ( index .Values.labels "github.repo" ) }}

View File

@@ -1,7 +1,7 @@
name: earthly name: earthly
category: utils category: utils
arch: "amd64" arch: "amd64"
version: "0.7.2" version: "0.7.2-1"
labels: labels:
github.repo: "earthly" github.repo: "earthly"
github.owner: "earthly" github.owner: "earthly"

View File

@@ -11,7 +11,7 @@ env:
- CGO_ENABLED=0 - CGO_ENABLED=0
steps: steps:
- | - |
PACKAGE_VERSION=${PACKAGE_VERSION%\+*} && \ PACKAGE_VERSION=${PACKAGE_VERSION%\-*} && \
cd go/src/github.com/${GITHUB_ORG}/{{ .Values.name }}/ && git checkout v"${PACKAGE_VERSION}" -b build && go build -ldflags="-w -s -X github.com/mudler/edgevpn/internal.Version=v$PACKAGE_VERSION" && mv {{.Values.name}} /usr/bin/ cd go/src/github.com/${GITHUB_ORG}/{{ .Values.name }}/ && git checkout v"${PACKAGE_VERSION}" -b build && go build -ldflags="-w -s -X github.com/mudler/edgevpn/internal.Version=v$PACKAGE_VERSION" && mv {{.Values.name}} /usr/bin/
- chmod +x /usr/bin/{{.Values.name}} - chmod +x /usr/bin/{{.Values.name}}
includes: includes:

View File

@@ -1,6 +1,6 @@
name: edgevpn name: edgevpn
category: utils category: utils
version: "0.22.0" version: "0.22.0-1"
labels: labels:
github.repo: "edgevpn" github.repo: "edgevpn"
github.owner: "mudler" github.owner: "mudler"

View File

@@ -10,7 +10,7 @@ env:
- GITHUB_ORG={{ ( index .Values.labels "github.owner" ) }} - GITHUB_ORG={{ ( index .Values.labels "github.owner" ) }}
- CGO_ENABLED=0 - CGO_ENABLED=0
steps: steps:
- cd go/src/github.com/${GITHUB_ORG}/{{ .Values.name }}/ && git checkout v"${PACKAGE_VERSION}" -b build && go build -o {{.Values.name}} && mv {{ .Values.name }} /usr/bin/{{ .Values.name }} - PACKAGE_VERSION=${PACKAGE_VERSION%\-*} && cd go/src/github.com/${GITHUB_ORG}/{{ .Values.name }}/ && git checkout v"${PACKAGE_VERSION}" -b build && go build -o {{.Values.name}} && mv {{ .Values.name }} /usr/bin/{{ .Values.name }}
- chmod +x /usr/bin/{{ .Values.name }} - chmod +x /usr/bin/{{ .Values.name }}
includes: includes:
- /usr/bin/{{.Values.name}} - /usr/bin/{{.Values.name}}

View File

@@ -1,6 +1,6 @@
name: goreleaser name: goreleaser
category: utils category: utils
version: "1.16.2" version: "1.16.2-1"
description: "Deliver Go binaries as fast and easily as possible" description: "Deliver Go binaries as fast and easily as possible"
labels: labels:
github.repo: "goreleaser" github.repo: "goreleaser"

View File

@@ -1,6 +1,6 @@
name: "helm" name: "helm"
category: "utils" category: "utils"
version: "3.11.2" version: "3.11.2-1"
description: "The Kubernetes Package Manager" description: "The Kubernetes Package Manager"
license: "Apache-2.0" license: "Apache-2.0"
labels: labels:

View File

@@ -1,6 +1,6 @@
name: "k9s" name: "k9s"
category: "utils" category: "utils"
version: "0.27.3" version: "0.27.3-1"
platform: Linux platform: Linux
labels: labels:
github.repo: "k9s" github.repo: "k9s"

View File

@@ -11,7 +11,7 @@ env:
- CGO_ENABLED=0 - CGO_ENABLED=0
steps: steps:
- | - |
PACKAGE_VERSION=${PACKAGE_VERSION%\+*} && \ PACKAGE_VERSION=${PACKAGE_VERSION%\-*} && \
cd go/src/github.com/${GITHUB_ORG}/{{ .Values.name }}/ && git checkout v"${PACKAGE_VERSION}" -b build && make build && mv {{.Values.name}} /usr/bin/ cd go/src/github.com/${GITHUB_ORG}/{{ .Values.name }}/ && git checkout v"${PACKAGE_VERSION}" -b build && make build && mv {{.Values.name}} /usr/bin/
- chmod +x /usr/bin/{{.Values.name}} - chmod +x /usr/bin/{{.Values.name}}
includes: includes:

View File

@@ -1,6 +1,6 @@
name: kube-vip name: kube-vip
category: utils category: utils
version: "0.5.11" version: "0.5.11-1"
labels: labels:
github.repo: "kube-vip" github.repo: "kube-vip"
github.owner: "kube-vip" github.owner: "kube-vip"

View File

@@ -11,7 +11,7 @@ env:
- CGO_ENABLED=0 - CGO_ENABLED=0
steps: steps:
- | - |
PACKAGE_VERSION=${PACKAGE_VERSION%\+*} && \ PACKAGE_VERSION=${PACKAGE_VERSION%\-*} && \
cd go/src/github.com/${GITHUB_ORG}/{{ .Values.name }}/ && git checkout v"${PACKAGE_VERSION}" -b build && go build -o {{.Values.name}} && mv {{ .Values.name }} /usr/bin/{{ .Values.name }} cd go/src/github.com/${GITHUB_ORG}/{{ .Values.name }}/ && git checkout v"${PACKAGE_VERSION}" -b build && go build -o {{.Values.name}} && mv {{ .Values.name }} /usr/bin/{{ .Values.name }}
- chmod +x /usr/bin/{{ .Values.name }} - chmod +x /usr/bin/{{ .Values.name }}
includes: includes:

View File

@@ -1,6 +1,6 @@
name: kubesplit name: kubesplit
category: utils category: utils
version: "0.2.1" version: "0.2.1-1"
description: "A opinionated simple tool to split big YAML Kubernetes files into chunks to help building helm charts" description: "A opinionated simple tool to split big YAML Kubernetes files into chunks to help building helm charts"
labels: labels:
github.repo: "kubesplit" github.repo: "kubesplit"

View File

@@ -1,6 +1,6 @@
name: "nerdctl" name: "nerdctl"
category: "utils" category: "utils"
version: "1.2.1" version: "1.2.1-1"
platform: linux platform: linux
labels: labels:
github.repo: "nerdctl" github.repo: "nerdctl"

View File

@@ -13,7 +13,7 @@ env:
- GITHUB_ORG={{ ( index .Values.labels "github.owner" ) }} - GITHUB_ORG={{ ( index .Values.labels "github.owner" ) }}
- CGO_ENABLED=0 - CGO_ENABLED=0
steps: steps:
- cd go/src/github.com/${GITHUB_ORG}/{{ .Values.name }}/ && git checkout v"${PACKAGE_VERSION}" -b build && make build && mv build/* /usr/bin/ - PACKAGE_VERSION=${PACKAGE_VERSION%\-*} && cd go/src/github.com/${GITHUB_ORG}/{{ .Values.name }}/ && git checkout v"${PACKAGE_VERSION}" -b build && make build && mv build/* /usr/bin/
includes: includes:
- usr/bin/.*|usr/bin - usr/bin/.*|usr/bin
{{ end }} {{ end }}

View File

@@ -1,6 +1,6 @@
name: operator-sdk name: operator-sdk
category: utils category: utils
version: "1.28.0" version: "1.28.0-1"
description: " SDK for building Kubernetes applications. Provides high level APIs, useful abstractions, and project scaffolding. " description: " SDK for building Kubernetes applications. Provides high level APIs, useful abstractions, and project scaffolding. "
labels: labels:
github.repo: "operator-sdk" github.repo: "operator-sdk"

View File

@@ -11,7 +11,7 @@ env:
- CGO_ENABLED=0 - CGO_ENABLED=0
steps: steps:
- | - |
PACKAGE_VERSION=${PACKAGE_VERSION%\+*} && \ PACKAGE_VERSION=${PACKAGE_VERSION%\-*} && \
cd go/src/github.com/${GITHUB_ORG}/{{ .Values.name }}/ && git checkout v"${PACKAGE_VERSION}" -b build && go build && mv {{.Values.name}} /usr/bin/ cd go/src/github.com/${GITHUB_ORG}/{{ .Values.name }}/ && git checkout v"${PACKAGE_VERSION}" -b build && go build && mv {{.Values.name}} /usr/bin/
- chmod +x /usr/bin/{{.Values.name}} - chmod +x /usr/bin/{{.Values.name}}
includes: includes:

View File

@@ -1,6 +1,6 @@
name: poco name: poco
category: utils category: utils
version: "0.3.1" version: "0.3.1-1"
labels: labels:
github.repo: "poco" github.repo: "poco"
github.owner: "mudler" github.owner: "mudler"