Skip to content

Instantly share code, notes, and snippets.

@tiagodavi70
Last active August 30, 2023 13:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tiagodavi70/fb46fefddeb02431337042e848f5ae10 to your computer and use it in GitHub Desktop.
Save tiagodavi70/fb46fefddeb02431337042e848f5ae10 to your computer and use it in GitHub Desktop.
#! /bin/bash
curl -O https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/google-cloud-cli-444.0.0-linux-x86_64.tar.gz
tar -xf google-cloud-cli-444.0.0-linux-x86.tar.gz
./google-cloud-sdk/install.sh
#./google-cloud-sdk/bin/gcloud init
gcloud auth login --no-launch-browser
REGIAO='regiao'
DIRETORIO='diretorio'
ID_PROJETO='id projeto'
gcloud config set project $ID_PROJETO
gcloud auth configure-docker
gcloud auth configure-docker europe-docker.pkg.dev
# docker image tag oldname newname
docker build -t ${REGIAO}/${ID_PROJETO}/${DIRETORIO}/teste-app .
docker push ${REGIAO}/${ID_PROJETO}/${DIRETORIO}/teste-app
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment