Added GChat notififation

This commit is contained in:
Jonathan Ervine 2020-08-16 21:31:17 +08:00
parent c45b361335
commit 983fb3be1a
2 changed files with 8 additions and 5 deletions

View File

@ -1,7 +1,6 @@
# Base on latest (edge) alpine image # Base on latest (edge) alpine image
FROM harbor.ervine.dev/library/x86_64/alpine/alpine:3.12 FROM harbor.ervine.dev/library/x86_64/alpine:v3.12
LABEL "Maintainer Jonathan Ervine <docker@ervine.org>"
MAINTAINER “Jonathan Ervine” <docker@ervine.org>
# Install updates # Install updates
ENV LANG='en_US.UTF-8' \ ENV LANG='en_US.UTF-8' \
@ -9,7 +8,7 @@ ENV LANG='en_US.UTF-8' \
FLASK_APP=/data/app-dev/app.py FLASK_APP=/data/app-dev/app.py
RUN apk update && \ 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 && \ apk -U add python3 gcc py3-pip python3-dev musl-dev libffi-dev git && \
adduser -D python adduser -D python

6
Jenkinsfile vendored
View File

@ -27,8 +27,12 @@ spec:
stage('Build with Kaniko') { stage('Build with Kaniko') {
git url: 'ssh://git@git.ervine.org/jonny/x86_64-alpine-hockey.git', credentialsId: 'jenkins-to-git' git url: 'ssh://git@git.ervine.org/jonny/x86_64-alpine-hockey.git', credentialsId: 'jenkins-to-git'
container('kaniko') { 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
}