Skip to content

Commit

Permalink
Merge pull request #2108 from code-elinka/build-binaries
Browse files Browse the repository at this point in the history
Build binaries for docker images in cloudbuild.yaml
  • Loading branch information
k8s-ci-robot authored May 10, 2023
2 parents 4cdd795 + 8de0d7a commit 08148e1
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 08148e1

Please sign in to comment.