Skip to content

Commit

Permalink
fix mime lookup
Browse files Browse the repository at this point in the history
  • Loading branch information
tonymet committed Dec 19, 2024
1 parent 2994003 commit 99ee0fc
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 1 deletion.
4 changes: 4 additions & 0 deletions gcloud.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package main
import (
"flag"
"fmt"
"mime"
"os"

"github.com/tonymet/gcloud-go/kms"
Expand All @@ -19,6 +20,9 @@ func init() {
cmdGithubRelease.StringVar(&cmdArgsGithub.Tag, "tag", "", "tag")
cmdGithubRelease.StringVar(&cmdArgsGithub.KeyPath, "k", "", "kms keypath")
cmdKMS = flag.NewFlagSet("kms-sign", flag.ExitOnError)
mime.AddExtensionType(".sig", "application/octet-stream")
mime.AddExtensionType(".gz", "application/x-gtar-compressed")
mime.AddExtensionType(".tar.gz", "application/x-gtar-compressed")
}

var (
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ require (
github.com/googleapis/enterprise-certificate-proxy v0.3.4 // indirect
github.com/googleapis/gax-go/v2 v2.14.0 // indirect
github.com/planetscale/vtprotobuf v0.6.1-0.20240319094008-0393e58bdf10 // indirect
github.com/tonymet/gcloud-go v0.0.3-0.20241218232857-360566976c47
github.com/tonymet/gcloud-go v0.0.3
go.opencensus.io v0.24.0 // indirect
go.opentelemetry.io/contrib/detectors/gcp v1.32.0 // indirect
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.57.0 // indirect
Expand Down
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,8 @@ github.com/tonymet/gcloud-go v0.0.2 h1:tRn9rYlNEGzLuseTEM2uwhVsyXvGJCgHoCywWqsdj
github.com/tonymet/gcloud-go v0.0.2/go.mod h1:vrNkHoIBfDM/48TkJODz9oDc9AtUVTIg66ZV0lnL4ck=
github.com/tonymet/gcloud-go v0.0.3-0.20241218232857-360566976c47 h1:3IXtpg8fQEup1QcJ3CkyxxUSS+otVZVusnaqyusFNJY=
github.com/tonymet/gcloud-go v0.0.3-0.20241218232857-360566976c47/go.mod h1:vrNkHoIBfDM/48TkJODz9oDc9AtUVTIg66ZV0lnL4ck=
github.com/tonymet/gcloud-go v0.0.3 h1:xFo/YElE/dyVBxlYqVS7lQAEC80rioWjuQVGkS4ZsNs=
github.com/tonymet/gcloud-go v0.0.3/go.mod h1:vrNkHoIBfDM/48TkJODz9oDc9AtUVTIg66ZV0lnL4ck=
go.einride.tech/aip v0.68.0 h1:4seM66oLzTpz50u4K1zlJyOXQ3tCzcJN7I22tKkjipw=
go.einride.tech/aip v0.68.0/go.mod h1:7y9FF8VtPWqpxuAxl0KQWqaULxW4zFIesD6zF5RIHHg=
go.opencensus.io v0.24.0 h1:y73uSU6J157QMP2kn2r30vwW1A2W2WFwSCGnAVxeaD0=
Expand Down
1 change: 1 addition & 0 deletions lite-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ github_release(){
TAG=$CLOUD_SDK_VERSION
cd "$1"
echo "creating release"
du -sh *gz
../gcloud-cmd github-release -tag "$TAG" -owner "$GH_OWNER" -repo "$GH_REPO" -file "google-cloud-cli-${TAG}-linux-x86_64-lite.tar.gz" -commit "master" -k "$KMS_KEYPATH"
[[ $? -eq 0 ]] || die "ERROR: create release fail"
cd -
Expand Down

0 comments on commit 99ee0fc

Please sign in to comment.