updated jenkinsfile etc
All checks were successful
gitea-lenape/links.jacquesingram.online/pipeline/head This commit looks good
All checks were successful
gitea-lenape/links.jacquesingram.online/pipeline/head This commit looks good
This commit is contained in:
8
Dockerfile
Executable file
8
Dockerfile
Executable 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
75
Jenkinsfile
vendored
Executable 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
19
compose.bash
Executable 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
20
compose.yaml
Executable 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"
|
Reference in New Issue
Block a user