updated jenkinsfile etc
All checks were successful
gitea-lenape/links.jacquesingram.online/pipeline/head This commit looks good

This commit is contained in:
Linux Lenape
2025-05-22 21:13:16 -04:00
parent a6d7a7acb7
commit 8baaf188c8
4 changed files with 122 additions and 0 deletions

8
Dockerfile Executable file
View File

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

75
Jenkinsfile vendored Executable file
View File

@@ -0,0 +1,75 @@
pipeline {
agent none
options {
disableConcurrentBuilds(abortPrevious: true)
buildDiscarder(logRotator(numToKeepStr: '1'))
}
stages {
stage('docker compose build') {
agent {
label "xochi"
}
steps {
dir('.') {
sh 'docker compose build'
}
}
}
stage('docker compose push') {
agent {
label "xochi"
}
steps {
dir('.') {
sh 'docker compose push'
}
}
}
stage('prune') {
agent {
label "xochi"
}
steps {
dir('.') {
sh 'docker system prune -a -f'
}
}
}
}}

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

20
compose.yaml Executable file
View File

@@ -0,0 +1,20 @@
services:
clocks.jacquesingram.online:
container_name: clocks.jacquesingram.online
image: jacqueskingram/clocks.jacquesingram.online
build:
context: .
dockerfile: Dockerfile
restart: unless-stopped
ports:
- "8080:80"