From 22546ca6c53ab746f8cc789b7e64ced09147f285 Mon Sep 17 00:00:00 2001 From: Jon Ervine Date: Mon, 8 Mar 2021 11:20:38 +0800 Subject: [PATCH] Use master repo --- Dockerfile | 2 +- Jenkinsfile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 491621d..b970d44 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,7 +12,7 @@ RUN apk update && \ apk -U add python3 gcc py3-pip python3-dev musl-dev libffi-dev git && \ adduser -D python -RUN mkdir /data && cd /data && git clone --single-branch --branch dev https://git.ervine.org/jonny/gcp-hockey-results /data +RUN mkdir /data && cd /data && git clone --single-branch --branch master https://git.ervine.org/jonny/gcp-hockey-results /data RUN pip3 install -r /data/requirements.txt && \ rm -rf /tmp/src && rm -rf /var/cache/apk/* diff --git a/Jenkinsfile b/Jenkinsfile index a94b270..107fb51 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -25,7 +25,7 @@ spec: node(POD_LABEL) { stage('Build with Kaniko') { - git branch: "dev", url: 'ssh://git@git.ervine.org/jonny/x86_64-alpine-hockey.git', credentialsId: 'jenkins-to-git' + git branch: "master", url: 'ssh://git@git.ervine.org/jonny/x86_64-alpine-hockey.git', credentialsId: 'jenkins-to-git' container('kaniko') { sh '/kaniko/executor -f `pwd`/Dockerfile -c `pwd` --cache=false --destination=harbor.ervine.dev/public/x86_64/alpine/hockey-dev:v3.13.0 --destination=harbor.ervine.dev/public/x86_64/alpine/hockey-dev:v3.13 --destination=harbor.ervine.dev/public/x86_64/alpine/hockey-dev:0.1' }