'update files with ansible'

This commit is contained in:
git 2023-10-30 14:39:02 +00:00
parent 73551bdf4c
commit 0ec0085bb0
2 changed files with 27 additions and 3 deletions

24
Containerfile Normal file
View File

@ -0,0 +1,24 @@
# Base on latest (edge) alpine image
FROM node:current-alpine as builder
RUN apk add -U git build-base python3 curl && \
curl -L https://github.com/butlerx/wetty/archive/refs/tags/v2.7.0.tar.gz -o /tmp/wetty.tar.gz && \
tar zxvf /tmp/wetty.tar.gz -C /tmp
WORKDIR /usr/src/app
COPY . /usr/src/app
RUN mv /tmp/wetty-2.7.0/* . && \
yarn && \
yarn build && \
yarn install --production --ignore-scripts --prefer-offline
FROM node:current-alpine
LABEL maintainer="docker@ervine.org"
WORKDIR /usr/src/app
ENV NODE_ENV=production
EXPOSE 3000
COPY --from=builder /usr/src/app/build /usr/src/app/build
COPY --from=builder /usr/src/app/node_modules /usr/src/app/node_modules
COPY --from=builder /usr/src/app/package.json /usr/src/app/
RUN apk add -U openssh-client sshpass && \
mkdir ~/.ssh
ENTRYPOINT [ "yarn", "docker-entrypoint", "--conf", "config.json" ]

6
Jenkinsfile vendored
View File

@ -27,12 +27,12 @@ spec:
stage('Build with Kaniko') {
git url: 'ssh://git@git.ervine.org/jonny/x86_64-alpine-wetty.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/wetty:2.0.3'
sh '/kaniko/executor -f `pwd`/Containerfile -c `pwd` --cache=false --destination=harbor.ervine.dev/public/x86_64/alpine/wetty:2.7.0'
}
}
stage('Notify gchat') {
hangoutsNotify message: "WeTTy 2.0.3 on Alpine Linux has built",token: "A2ET831pVslqXTqAx6ycu573r",threadByJob: false
}
googlechatnotification (url: 'https://chat.googleapis.com/v1/spaces/AAAA-nNKzdA/messages?key=AIzaSyDdI0hCZtE6vySjMm-WEfRq3CPzqKqqsHI&token=FySO2Zy2wfNJ7QKoqT9zy0uzNJF8bwj74ansor3BTu0%3D', message: "weTTY 2.7.0 on Node Alpine has built")
}
}
}