Skip to content

Commit

Permalink
Build binaries for docker images in cloudbuild.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
code-elinka committed May 10, 2023
1 parent 4cdd795 commit 8de0d7a
Showing 1 changed file with 28 additions and 8 deletions.
36 changes: 28 additions & 8 deletions cloudbuild.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,35 @@ options:
machineType: E2_HIGHCPU_8
steps:
- name: gcr.io/k8s-staging-test-infra/gcb-docker-gcloud:v20230206-8160eea68e
entrypoint: make
id: build-binaries
entrypoint: bash
env:
- DOCKER_CLI_EXPERIMENTAL=enabled
- REGISTRY="gcr.io/k8s-ingress-image-push"
- VERSION=$_PULL_BASE_REF
- VERBOSE=1
- HOME=/root
- USER=root
args: ['all-push','ALL_ARCH=amd64 arm64']
- DOCKER_CLI_EXPERIMENTAL=enabled
- VERSION=$_PULL_BASE_REF
- ALL_ARCH="amd64 arm64"
- VERBOSE=1
- HOME=/root
- USER=root
args:
- -c
- |
VERBOSE="${VERBOSE}" make all-build
- name: gcr.io/k8s-staging-test-infra/gcb-docker-gcloud:v20230206-8160eea68e
id: push-images
waitFor: ["build-binaries"]
entrypoint: bash
env:
- DOCKER_CLI_EXPERIMENTAL=enabled
- REGISTRY="gcr.io/k8s-ingress-image-push"
- VERSION=$_PULL_BASE_REF
- ALL_ARCH="amd64 arm64"
- VERBOSE=1
- HOME=/root
- USER=root
args:
- -c
- |
make all-push ALL_ARCH="${ALL_ARCH}"
substitutions:
_GIT_TAG: "12345"
_PULL_BASE_REF: "main"

0 comments on commit 8de0d7a

Please sign in to comment.