How to do correct pushing build image to Google?
Looks like you need gcloud cli
How to add gcloud to my circle.yml?
Right now my circle.yml is here.
You need to first install it like you would anything else.
As an aside, it looks like you’re pulling in the
docker image and reinstalling Docker. That shouldn’t be necessary.
Could provide example please?
Remove lines 20-27
Done. What next? How to install gcloud and provide details?
gcloud auth activate-service-account --key-file
How to provide json file to circleci?
Their documentation says to commit it to your repo.
A safer solution is to store the creds as env vars and build the json file yourself.
Up to you.
apt-get install -y python2.7
tar -xzf google-cloud-sdk-153.0.0-linux-x86_64.tar.gz
./google-cloud-sdk/install.sh --usage-reporting false --command-completion true --additional-components alpha beta --quiet
/bin/sh: apt-get: not found
Exited with code 127
Which base image are you using?
What image need to use in circle.yml?
need apt working… to install google sdk
It’s an Alpine image you’re using- you need
How to use apk?
I’m going to need you to Google that.
Is there an image that contains the familiar apt-get?
Any Debian/Ubuntu one. All our images are Debian Jessie based.
version: 2 jobs: build: docker: - image: docker:1.13.1-git - image: circleci/python:latest
So, I must in build add for example python and in run section command apt-get will be available?
- run: | apt-get install -y python2