From ce24393381fa8bd7b0452401229282be6b4e1925 Mon Sep 17 00:00:00 2001 From: Software Shinobi Date: Sat, 7 Jun 2025 17:10:19 -0400 Subject: [PATCH] automated terminal push --- Dockerfile | 5 ++++ Jenkinsfile | 57 ++++++++++++++++++++++++++++++++++++++++++ index.html | 1 + README.md => readme.md | 0 4 files changed, 63 insertions(+) create mode 100644 Dockerfile create mode 100755 Jenkinsfile create mode 100644 index.html rename README.md => readme.md (100%) diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..c7e06d6 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,5 @@ +FROM nginx:latest + +WORKDIR /usr/share/nginx/html + +COPY --chown=www-data:www-data --chmod=755 . . diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100755 index 0000000..52bc024 --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,57 @@ +pipeline { + + agent none + + options { + + disableConcurrentBuilds(abortPrevious: true) + + buildDiscarder(logRotator(numToKeepStr: '1')) + } + + stages { + + stage('docker compose build') { + + agent { + + label "sian" + + } + + steps { + + dir('.') { + + sh 'docker compose build' + + } + + } + + } + + stage('docker compose push') { + + agent { + + label "sian" + + } + + steps { + + dir('.') { + + sh 'docker compose push' + + } + + } + + } + + } + +} + diff --git a/index.html b/index.html new file mode 100644 index 0000000..e7efabd --- /dev/null +++ b/index.html @@ -0,0 +1 @@ +if you reading this it works diff --git a/README.md b/readme.md similarity index 100% rename from README.md rename to readme.md