automated terminal push
This commit is contained in:
15
.dockerignore
Executable file
15
.dockerignore
Executable file
@@ -0,0 +1,15 @@
|
||||
.git
|
||||
|
||||
.pristine
|
||||
|
||||
.trash
|
||||
|
||||
.recycle
|
||||
|
||||
.backup
|
||||
|
||||
.volumes
|
||||
|
||||
web/
|
||||
|
||||
docs/
|
||||
3
.gitignore
vendored
Executable file
3
.gitignore
vendored
Executable file
@@ -0,0 +1,3 @@
|
||||
.volumes
|
||||
|
||||
target/
|
||||
5
Dockerfile
Executable file
5
Dockerfile
Executable file
@@ -0,0 +1,5 @@
|
||||
FROM nginx:latest
|
||||
|
||||
WORKDIR /usr/share/nginx/html
|
||||
|
||||
COPY --chown=www-data:www-data --chmod=755 . .
|
||||
54
Jenkinsfile
vendored
Normal file
54
Jenkinsfile
vendored
Normal file
@@ -0,0 +1,54 @@
|
||||
pipeline {
|
||||
|
||||
agent none
|
||||
|
||||
options {
|
||||
|
||||
disableConcurrentBuilds(abortPrevious: true)
|
||||
|
||||
buildDiscarder(logRotator(numToKeepStr: '10'))
|
||||
}
|
||||
|
||||
stages {
|
||||
|
||||
stage('docker compose build') {
|
||||
|
||||
agent {
|
||||
|
||||
label "huracan"
|
||||
|
||||
}
|
||||
|
||||
steps {
|
||||
|
||||
dir('.') {
|
||||
|
||||
sh 'docker compose build'
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
stage('docker compose push') {
|
||||
|
||||
agent {
|
||||
|
||||
label "huracan"
|
||||
|
||||
}
|
||||
|
||||
steps {
|
||||
|
||||
dir('.') {
|
||||
|
||||
sh 'docker compose push'
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}}
|
||||
13
compose.bash
Executable file
13
compose.bash
Executable file
@@ -0,0 +1,13 @@
|
||||
#!/bin/bash
|
||||
|
||||
reset
|
||||
|
||||
clear
|
||||
|
||||
set -e
|
||||
|
||||
set -x
|
||||
|
||||
docker compose down --remove-orphans
|
||||
|
||||
docker compose up -d --build
|
||||
18
compose.yaml
Normal file
18
compose.yaml
Normal file
@@ -0,0 +1,18 @@
|
||||
services:
|
||||
|
||||
www.valorantdigital.com:
|
||||
|
||||
container_name: www.valorantdigital.com
|
||||
|
||||
image: softwareshinobi/www.valorantdigital.com
|
||||
|
||||
build:
|
||||
|
||||
context: .
|
||||
|
||||
dockerfile: Dockerfile
|
||||
|
||||
ports:
|
||||
|
||||
- 8000:80
|
||||
|
||||
|
Before Width: | Height: | Size: 88 KiB After Width: | Height: | Size: 88 KiB |
BIN
favicon.ico
Executable file
BIN
favicon.ico
Executable file
Binary file not shown.
|
After Width: | Height: | Size: 1.1 KiB |
Reference in New Issue
Block a user