Skip to content
This repository has been archived by the owner on Sep 6, 2019. It is now read-only.

vendor in docker-credential-gcr #100

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions jib/jib-maven.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,17 @@ spec:
default: empty-dir-volume

steps:
- name: docker-creds-helper
image: golang:1.11.4
command: ["/bin/bash"]
args:
- -c
- |
go get github.com/GoogleCloudPlatform/docker-credential-gcr;
cp /go/bin/docker-credential-gcr /usr/local/bin;
volumeMounts:
- name: ${CACHE}
mountPath: /usr/local/bin
- name: build-and-push
image: gcr.io/cloud-builders/mvn
args:
Expand All @@ -23,6 +34,8 @@ spec:
- -Dimage=${IMAGE}
workingDir: /workspace/${DIRECTORY}
volumeMounts:
- name: ${CACHE}
mountPath: /usr/local/bin
- name: ${CACHE}
mountPath: /builder/home/.m2
subPath: m2-cache
Expand Down