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