Last active
August 30, 2023 13:09
-
-
Save tiagodavi70/fb46fefddeb02431337042e848f5ae10 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /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