Skip to content

Commit

Permalink
switch to go 1.15
Browse files Browse the repository at this point in the history
  • Loading branch information
vintikzzz committed Sep 20, 2020
1 parent 085e376 commit 5c74624
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 23 deletions.
36 changes: 14 additions & 22 deletions cloudbuild.yaml
Original file line number Diff line number Diff line change
@@ -1,28 +1,20 @@
steps:
- name: "gcr.io/cloud-builders/docker"
entrypoint: "bash"
args: ["-c", "docker login rg.fr-par.scw.cloud/webtor -u nologin -p $$PASSWORD"]
secretEnv: ["PASSWORD"]
- name: 'gcr.io/cloud-builders/docker'
args: ["build", "-t", "rg.fr-par.scw.cloud/webtor/$REPO_NAME:$REVISION_ID", "."]
args: ["build", "-t", "gcr.io/$PROJECT_ID/$REPO_NAME:$REVISION_ID", "."]
- name: gcr.io/cloud-builders/docker
args: ['tag',
'rg.fr-par.scw.cloud/webtor/$REPO_NAME:$REVISION_ID',
'rg.fr-par.scw.cloud/webtor/$REPO_NAME:latest']
'gcr.io/$PROJECT_ID/$REPO_NAME:$REVISION_ID',
'gcr.io/$PROJECT_ID/$REPO_NAME:latest']
- name: 'gcr.io/cloud-builders/docker'
args: ["push", "rg.fr-par.scw.cloud/webtor/$REPO_NAME:$REVISION_ID"]
args: ["push", "gcr.io/$PROJECT_ID/$REPO_NAME:$REVISION_ID"]
- name: 'gcr.io/cloud-builders/docker'
args: ["push", "rg.fr-par.scw.cloud/webtor/$REPO_NAME:latest"]
- name: 'gcr.io/cloud-builders/gcloud'
entrypoint: 'bash'
args:
- '-c'
- |
gcloud components install kubectl
gsutil cp gs://kube-key/kubeconfig .
export KUBECONFIG=kubeconfig
kubectl set image deployment/external-proxy --namespace=webtor external-proxy=rg.fr-par.scw.cloud/webtor/$REPO_NAME:$REVISION_ID || exit 0
secrets:
- kmsKeyName: "projects/vibrant-arcanum-201111/locations/global/keyRings/my/cryptoKeys/my"
secretEnv:
PASSWORD: "CiQAe+Sl5DqcVdE72XtLyOGHbPjFpflsmSSo2esloNRRfebAWxoSTQCH+tXMtLyGFwQuRCxnfXUnvM8zMHJI72WmrHP1n38bzr5PX/lYsSjv+D6p0/sNA/hegfIs4IKvj9188803DtnLO8RC0dzRJTnXfmzK"
args: ["push", "gcr.io/$PROJECT_ID/$REPO_NAME:latest"]
# - name: 'gcr.io/cloud-builders/gcloud'
# entrypoint: 'bash'
# args:
# - '-c'
# - |
# gcloud components install kubectl
# gsutil cp gs://kube-key/kubeconfig .
# export KUBECONFIG=kubeconfig
# kubectl set image deployment/external-proxy --namespace=webtor external-proxy=gcr.io/$PROJECT_ID/$REPO_NAME:$REVISION_ID || exit 0
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/webtor-io/external-proxy

go 1.13
go 1.15

require (
github.com/joonix/log v0.0.0-20190524090622-13fe31bbdd7a
Expand Down
5 changes: 5 additions & 0 deletions vendor/modules.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,25 @@ github.com/golang/protobuf/ptypes/any
github.com/golang/protobuf/ptypes/duration
github.com/golang/protobuf/ptypes/timestamp
# github.com/joonix/log v0.0.0-20190524090622-13fe31bbdd7a
## explicit
github.com/joonix/log
# github.com/konsorten/go-windows-terminal-sequences v1.0.1
github.com/konsorten/go-windows-terminal-sequences
# github.com/pkg/errors v0.8.1
## explicit
github.com/pkg/errors
# github.com/russross/blackfriday/v2 v2.0.1
github.com/russross/blackfriday/v2
# github.com/shurcooL/sanitized_anchor_name v1.0.0
github.com/shurcooL/sanitized_anchor_name
# github.com/sirupsen/logrus v1.4.2
## explicit
github.com/sirupsen/logrus
# github.com/urfave/cli v1.22.2
## explicit
github.com/urfave/cli
# github.com/webtor-io/common-services v0.0.0-20200102124507-e840419c0302
## explicit
github.com/webtor-io/common-services
# golang.org/x/sys v0.0.0-20190422165155-953cdadca894
golang.org/x/sys/unix
Expand Down

0 comments on commit 5c74624

Please sign in to comment.