automated terminal push

This commit is contained in:
2025-06-04 09:15:59 -04:00
parent 576aea830e
commit fb5360e9d1
8 changed files with 121 additions and 0 deletions

11
.dockerignore Normal file
View File

@@ -0,0 +1,11 @@
.git
.pristine
.trash
.recycle
.backup
.template

0
.gitignore vendored Normal file
View File

5
Dockerfile Normal file
View File

@@ -0,0 +1,5 @@
FROM nginx:latest
WORKDIR /usr/share/nginx/html
COPY --chown=www-data:www-data --chmod=755 . .

56
Jenkinsfile vendored Normal file
View File

@@ -0,0 +1,56 @@
pipeline {
agent none
options {
disableConcurrentBuilds(abortPrevious: true)
buildDiscarder(logRotator(numToKeepStr: '10'))
}
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'
}
}
}
}
}

19
compose.bash Executable file
View File

@@ -0,0 +1,19 @@
#!/bin/bash
##
reset;
clear;
##
set -e;
set -x;
##
docker compose down --remove-orphans
docker compose up --build -d

17
compose.yaml Normal file
View File

@@ -0,0 +1,17 @@
services:
www.softwareshinobi.come:
container_name: www.softwareshinobi.com
image: softwareshinobi/www.softwareshinobi.com
build:
context: .
dockerfile: Dockerfile
ports:
- 8000:80

13
index.html Normal file
View File

@@ -0,0 +1,13 @@
<html lang="en">
<body>
<script>
window.location.replace("https://softwareshinobi.com");
</script>
</body>
</html>