Skip to content

Commit

Permalink
fix(builds): remove kaniko and gcr push reference
Browse files Browse the repository at this point in the history
  • Loading branch information
akhileshh committed Nov 21, 2024
1 parent 0bc47bb commit c45c88e
Showing 1 changed file with 5 additions and 15 deletions.
20 changes: 5 additions & 15 deletions cloudbuild.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,13 @@ steps:
args: ["-c", "docker login --username=$$USERNAME --password=$$PASSWORD"]
secretEnv: ["USERNAME", "PASSWORD"]

# Build the final stage image - Kaniko takes care caching
- name: "gcr.io/kaniko-project/executor:latest"
args:
- "--cache=true"
- "--cache-ttl=48h"
- "--compressed-caching=false"
- "--cache-copy-layers=true"
- "--destination=gcr.io/$PROJECT_ID/pychunkedgraph:$TAG_NAME"
timeout: 1800s

# TODO: can't figure out how to just re-tag and push to Dockerhub
- name: "gcr.io/cloud-builders/docker"
entrypoint: "bash"
args: ["-c", "docker pull gcr.io/$PROJECT_ID/pychunkedgraph:$TAG_NAME"]
args:
- "-c"
- |
docker build -t gcr.io/$PROJECT_ID/pychunkedgraph:$TAG_NAME .
timeout: 600s

# Additional tag for Dockerhub
- name: "gcr.io/cloud-builders/docker"
Expand All @@ -36,9 +29,6 @@ steps:
args: ["-c", "docker push $$USERNAME/pychunkedgraph:$TAG_NAME"]
secretEnv: ["USERNAME"]

images:
- "gcr.io/$PROJECT_ID/pychunkedgraph:$TAG_NAME"

availableSecrets:
secretManager:
- versionName: projects/$PROJECT_ID/secrets/docker-password/versions/1
Expand Down

0 comments on commit c45c88e

Please sign in to comment.