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 19, 2020
1 parent 417a4fc commit 8666b15
Show file tree
Hide file tree
Showing 2 changed files with 15 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/video-thumbnails-generator --namespace=webtor video-thumbnails-generator=rg.fr-par.scw.cloud/webtor/$REPO_NAME:$REVISION_ID
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/video-thumbnails-generator --namespace=webtor video-thumbnails-generator=gcr.io/$PROJECT_ID/$REPO_NAME:$REVISION_ID
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/video-thumbnails-generator

go 1.14
go 1.15

require (
github.com/aws/aws-sdk-go v1.32.9
Expand Down

0 comments on commit 8666b15

Please sign in to comment.