Compare commits

..

No commits in common. "cbc3cc26edfdf3137bf6fc459fb6e5ccdc9994f7" and "6a90b91f3aefe75ab487020b89e723994d7882aa" have entirely different histories.

3 changed files with 3 additions and 73 deletions

View File

@ -1,9 +1,9 @@
FROM python:3.10-alpine
WORKDIR /app/
WORKDIR /app
ENV PYTHONIOENCODING=utf-8
COPY Pipfile Pipfile.lock everybody.txt tweetbot.py /app/
COPY Pipfile Pipfile.lock everybody.txt tweetbot.py /app
# Install pipenv and compilation dependencies
RUN pip install pipenv && pipenv install --deploy --ignore-pipfile

70
Jenkinsfile vendored
View File

@ -1,70 +0,0 @@
pipeline {
agent none
environment {
HOME = "${env.WORKSPACE}"
DOCKER_REGISTRY = 'https://registry.digitalocean.com'
DOCKER_IMAGE_NAME = 'registry.digitalocean.com/ailuridae-registry/ailuridae.io/everybodymov'
DOCKER_IMAGE = ''
}
stages {
stage('Setup') {
agent {
docker {
image 'python:3.10-slim-bullseye'
}
}
steps {
sh 'python -m pip install --no-cache-dir --upgrade --user pip'
sh 'python -m pip install --no-cache-dir pipenv --user'
sh 'python -m pipenv install --dev'
}
}
stage('Check') {
agent {
docker {
image 'python:3.10-slim-bullseye'
}
}
steps {
sh 'python -m pipenv verify'
sh 'python -m pipenv check --clear'
sh 'python -m pipenv run bandit *.py'
}
}
stage('Build') {
agent {
label 'main'
}
steps {
script {
DOCKER_IMAGE = docker.build("${DOCKER_IMAGE_NAME}")
}
}
}
stage('Publish') {
agent {
label 'main'
}
steps {
script {
docker.withRegistry(env.DOCKER_REGISTRY, 'digital-ocean-ailuridae-registry') {
DOCKER_IMAGE.push("${BUILD_NUMBER}")
DOCKER_IMAGE.push('latest')
}
}
}
}
}
post {
always {
node('main') {
cleanWs()
}
}
}
}

2
Pipfile.lock generated
View File

@ -1,7 +1,7 @@
{
"_meta": {
"hash": {
"sha256": "e7a1785570cb6182573b0e15cae2ad2c86adb2c280e88ceaa9126c232b720c9c"
"sha256": "3dc4c0a387fc9c5280d0dbfadae8f3d7cac3ddf589af5ec78dfe7090ff2684f2"
},
"pipfile-spec": 6,
"requires": {