From 3d0c013943a2a699a4d12ca39b3bd87a776e1f2b Mon Sep 17 00:00:00 2001 From: "A. Stoewer" Date: Wed, 23 Aug 2023 12:44:30 +1000 Subject: [PATCH] Fix upgrade go to 1.21.0 (#2832) * Fix upgrade go to 1.21.0 * Add signature with make drone-signature --- .drone/drone.jsonnet | 10 +++++----- .drone/drone.yml | 14 +++++++------- cmd/tempo-serverless/lambda/Dockerfile | 2 +- 3 files changed, 13 insertions(+), 13 deletions(-) diff --git a/.drone/drone.jsonnet b/.drone/drone.jsonnet index a5305f0d7d7..f52007a33ad 100644 --- a/.drone/drone.jsonnet +++ b/.drone/drone.jsonnet @@ -105,7 +105,7 @@ local image_tag_for_cd() = { local build_binaries(arch) = { name: 'build-tempo-binaries', - image: 'golang:1.20.4-alpine', + image: 'golang:1.21.0-alpine', commands: [ 'apk --update --no-cache add make git bash', ] + [ @@ -227,7 +227,7 @@ local deploy_to_dev() = { steps+: [ { name: 'build-tempo-serverless', - image: 'golang:1.20.4-alpine', + image: 'golang:1.21.0-alpine', commands: [ 'apk add make git zip bash', './tools/image-tag | cut -d, -f 1 | tr A-Z a-z > .tags', // values in .tags are used by the next step when pushing the image @@ -324,7 +324,7 @@ local deploy_to_dev() = { }, { name: 'write-key', - image: 'golang:1.20.4', + image: 'golang:1.21.0', commands: ['printf "%s" "$NFPM_SIGNING_KEY" > $NFPM_SIGNING_KEY_FILE'], environment: { NFPM_SIGNING_KEY: { from_secret: gpg_private_key.name }, @@ -333,7 +333,7 @@ local deploy_to_dev() = { }, { name: 'test release', - image: 'golang:1.20.4', + image: 'golang:1.21.0', commands: ['make release-snapshot'], environment: { NFPM_DEFAULT_PASSPHRASE: { from_secret: gpg_passphrase.name }, @@ -366,7 +366,7 @@ local deploy_to_dev() = { }, { name: 'release', - image: 'golang:1.20.4', + image: 'golang:1.21.0', commands: ['make release'], environment: { GITHUB_TOKEN: { from_secret: gh_token_secret.name }, diff --git a/.drone/drone.yml b/.drone/drone.yml index d1cb7740cfd..26458b783c1 100644 --- a/.drone/drone.yml +++ b/.drone/drone.yml @@ -17,7 +17,7 @@ steps: - COMPONENT=tempo GOARCH=amd64 make exe - COMPONENT=tempo-vulture GOARCH=amd64 make exe - COMPONENT=tempo-query GOARCH=amd64 make exe - image: golang:1.20.4-alpine + image: golang:1.21.0-alpine name: build-tempo-binaries - image: plugins/docker name: build-tempo-image @@ -78,7 +78,7 @@ steps: - COMPONENT=tempo GOARCH=arm64 make exe - COMPONENT=tempo-vulture GOARCH=arm64 make exe - COMPONENT=tempo-query GOARCH=arm64 make exe - image: golang:1.20.4-alpine + image: golang:1.21.0-alpine name: build-tempo-binaries - image: plugins/docker name: build-tempo-image @@ -238,7 +238,7 @@ steps: - cd ./cmd/tempo-serverless - make build-docker-gcr-binary - make build-lambda-zip - image: golang:1.20.4-alpine + image: golang:1.21.0-alpine name: build-tempo-serverless - image: plugins/gcr name: deploy-tempo-serverless-gcr @@ -308,7 +308,7 @@ steps: NFPM_SIGNING_KEY: from_secret: gpg_private_key NFPM_SIGNING_KEY_FILE: /drone/src/private-key.key - image: golang:1.20.4 + image: golang:1.21.0 name: write-key - commands: - make release-snapshot @@ -316,7 +316,7 @@ steps: NFPM_DEFAULT_PASSPHRASE: from_secret: gpg_passphrase NFPM_SIGNING_KEY_FILE: /drone/src/private-key.key - image: golang:1.20.4 + image: golang:1.21.0 name: test release - commands: - ./tools/packaging/verify-deb-install.sh @@ -342,7 +342,7 @@ steps: NFPM_DEFAULT_PASSPHRASE: from_secret: gpg_passphrase NFPM_SIGNING_KEY_FILE: /drone/src/private-key.key - image: golang:1.20.4 + image: golang:1.21.0 name: release when: event: @@ -426,6 +426,6 @@ kind: secret name: gpg_passphrase --- kind: signature -hmac: beb2593e403f909da214e906b27317f8df0ed24dea4d98d04ba27e985b1ea701 +hmac: eae1569a689ddcdfb6f035a65ede40722df9c374dce27af3628833e518d6ab82 ... diff --git a/cmd/tempo-serverless/lambda/Dockerfile b/cmd/tempo-serverless/lambda/Dockerfile index 8d268c103d2..735432b1cc2 100644 --- a/cmd/tempo-serverless/lambda/Dockerfile +++ b/cmd/tempo-serverless/lambda/Dockerfile @@ -13,7 +13,7 @@ # # build the lambda and retrive the lambda-local-proxy # -FROM golang:1.20.4-buster AS build +FROM golang:1.21.0 AS build # copy in the lambda. todo: build in container COPY lambda /