forked from cohere-ai/cohere-toolkit
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
98859c8
commit 51d38a0
Showing
1 changed file
with
1 addition
and
67 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,7 +25,7 @@ jobs: | |
uses: google-github-actions/setup-gcloud@v0 | ||
with: | ||
project_id: ${{ vars.GCP_PROJECT_ID }} | ||
service_account_email: [email protected] | ||
service_account_email: ${{ secrets.SA_EMAIL }} | ||
service_account_key: ${{ secrets.GCP_SA_KEY }} | ||
|
||
- name: Configure Docker | ||
|
@@ -39,51 +39,6 @@ jobs: | |
env: | ||
KEY: ${{ secrets.GCP_SA_KEY }} | ||
|
||
# - name: Checkout code | ||
# uses: actions/checkout@v2 | ||
|
||
# - name: Set up Docker Buildx | ||
# uses: docker/setup-buildx-action@v1 | ||
|
||
# - name: Decode and write GCP key to file | ||
# run: echo "${{ secrets.GCP_SA_KEY_B64 }}" | base64 --decode > /tmp/gcp_sa_key.json | ||
|
||
# - name: Authenticate to Google Cloud | ||
# run: | | ||
# gcloud auth activate-service-account --key-file=/tmp/gcp_sa_key.json | ||
# gcloud auth configure-docker us-docker.pkg.dev --quiet | ||
|
||
# - name: Checkout repository | ||
# uses: actions/checkout@v4 | ||
|
||
# - name: Set up Docker Buildx | ||
# uses: docker/setup-buildx-action@v1 | ||
|
||
# - name: Authenticate with service account | ||
# uses: google-github-actions/auth@v1 | ||
# with: | ||
# credentials_json: ${{ secrets.GCP_SA_KEY }} | ||
|
||
|
||
# # - name: Login | ||
# # uses: google-github-actions/setup-gcloud@v1 | ||
|
||
# - name: Set up Cloud SDK | ||
# uses: google-github-actions/setup-gcloud@v1 | ||
# with: | ||
# project_id: ${{ vars.GCP_PROJECT_ID }} | ||
# service_account_key: ${{ secrets.GCP_SA_KEY }} | ||
|
||
# - name: Configure Docker to use Google Cloud credentials | ||
# run: gcloud auth configure-docker us-docker.pkg.dev | ||
# export_default_credentials: true | ||
|
||
# - name: Configure Docker | ||
# run: yes | gcloud auth configure-docker us-docker.pkg.dev | ||
|
||
# - name: Checkout repository | ||
# uses: actions/checkout@v2 | ||
|
||
- name: Extract metadata (tags, labels) for Docker | ||
id: meta | ||
uses: docker/metadata-action@v3 | ||
|
@@ -94,27 +49,6 @@ jobs: | |
run: | | ||
docker build -t ${{ env.IMAGE_NAME }} -f ./src/backend/Dockerfile . | ||
# - name: Pull docker hello-world image | ||
# run: docker pull hello-world | ||
|
||
# - name: Tag Docker image | ||
# run: | | ||
# docker tag hello-world ${{ vars.REGISTRY }}/hello-world | ||
|
||
# # Save the SA key to a file so that it can be used by the docker build | ||
# - name: Save SA key to file | ||
# run: echo "${{ secrets.GCP_SA_KEY }}" > /tmp/gcp_sa_key.json | ||
|
||
# - name: Try auth again! | ||
# run: | | ||
# gcloud auth activate-service-account --key-file /tmp/gcp_sa_key.json | ||
# gcloud auth configure-docker --quiet | ||
# docker login -u _json_key -p "$(cat /tmp/gcp_sa_key.json)" https://gcr.io | ||
|
||
# - name: Push Docker image | ||
# run: | | ||
# docker push ${{ vars.REGISTRY }}/hello-world | ||
|
||
- name: Tag Docker image | ||
run: | | ||
docker tag ${{ env.IMAGE_NAME }} ${{ steps.meta.outputs.tags }} | ||
|