forked from sameyes911/azure-vote-sam
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
lianghuang
committed
Oct 28, 2019
1 parent
6f0e32c
commit d391bae
Showing
2 changed files
with
38 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
podTemplate(yaml: './podTemplate.yaml') { | ||
node(POD_LABEL) { | ||
//pull down the source code | ||
git url: 'https://github.com/sameyes911/azure-vote-sam', branch: 'master', credentialsId: "cf748a1ea72c51e5f98f8324059dae4ee355a403" | ||
|
||
container('docker') { | ||
//build image | ||
sh 'docker build -t rancherlbacr.azurecr.io/azure-vote-front:latest ./azure-vote' | ||
// docker login | ||
sh 'docker login rancherlbacr.azurecr.io -u rancherlbacr -p c=b5Vc7lhdqkKR7xME0Rqq9pggSrW6KZ' | ||
// docker image push | ||
sh 'docker push rancherlbacr.azurecr.io/azure-vote-front:latest' | ||
} | ||
// trigger deployment | ||
build 'bookinfo-productpage-deployment' | ||
} | ||
|
||
} |
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
apiVersion: v1 | ||
kind: Pod | ||
spec: | ||
containers: | ||
- name: docker | ||
image: docker:19.03.1 | ||
command: | ||
- sleep | ||
args: | ||
- 99d | ||
env: | ||
- name: DOCKER_HOST | ||
value: tcp://localhost:2375 | ||
- name: docker-daemon | ||
image: docker:19.03.1-dind | ||
securityContext: | ||
privileged: true | ||
env: | ||
- name: DOCKER_TLS_CERTDIR | ||
value: "" |