From 983fb3be1a90b11e5bc89f50bf6e0a31be59183d Mon Sep 17 00:00:00 2001 From: Jonathan Ervine Date: Sun, 16 Aug 2020 21:31:17 +0800 Subject: [PATCH] Added GChat notififation --- Dockerfile | 7 +++---- Jenkinsfile | 6 +++++- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 8e2a660..7bd9813 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,6 @@ # Base on latest (edge) alpine image -FROM harbor.ervine.dev/library/x86_64/alpine/alpine:3.12 - -MAINTAINER “Jonathan Ervine” +FROM harbor.ervine.dev/library/x86_64/alpine:v3.12 +LABEL "Maintainer Jonathan Ervine " # Install updates ENV LANG='en_US.UTF-8' \ @@ -9,7 +8,7 @@ ENV LANG='en_US.UTF-8' \ FLASK_APP=/data/app-dev/app.py RUN apk update && \ - apk -U upgrade && \ + apk -U upgrade --ignore aline-baselayout && \ apk -U add python3 gcc py3-pip python3-dev musl-dev libffi-dev git && \ adduser -D python diff --git a/Jenkinsfile b/Jenkinsfile index c1f5cf2..b558b59 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -27,8 +27,12 @@ spec: stage('Build with Kaniko') { git 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=true --destination=harbor.ervine.dev/library/x86_64/alpine/hockey:3.12.0 --destination=harbor.ervine.dev/library/x86_64/alpine/hockey:3.12' + sh '/kaniko/executor -f `pwd`/Dockerfile -c `pwd` --cache=true --destination=harbor.ervine.dev/public/x86_64/alpine/hockey:v3.12.0 --destination=harbor.ervine.dev/public/x86_64/alpine/hockey:v3.12' } } } } + +stage('Notify gchat') { + hangoutsNotify message: "Hockey Application on Alpine Linux 3.12.0 has built",token: "A2ET831pVslqXTqAx6ycu573r",threadByJob: false +}