Compare commits

59 Commits

Author SHA1 Message Date
Robert Ose
9f7e6db261 test 2025-12-17 12:53:48 +01:00
sotos
bb88b190ee update
Some checks failed
CI/CD Pipeline / lint (push) Failing after 18s
CI/CD Pipeline / deploy (push) Successful in 1m24s
2025-12-17 12:14:53 +01:00
sotos
7f100d85d1 update
Some checks failed
CI/CD Pipeline / lint (push) Has been cancelled
CI/CD Pipeline / deploy (push) Successful in 1m15s
2025-12-17 11:35:01 +01:00
sotos
6931df8463 Update
Some checks failed
CI/CD Pipeline / lint (push) Failing after 18s
CI/CD Pipeline / deploy (push) Failing after 39s
2025-12-17 11:32:59 +01:00
sotos
a339ad8d9c update
Some checks failed
CI/CD Pipeline / lint (push) Failing after 18s
CI/CD Pipeline / deploy (push) Failing after 56s
2025-12-17 11:28:21 +01:00
sotos
a975f69891 Update
Some checks failed
CI/CD Pipeline / lint (push) Failing after 18s
CI/CD Pipeline / deploy (push) Failing after 1m23s
2025-12-17 11:13:38 +01:00
sotos
fa8afa87e5 Merge branch 'main' of https://dns.s-martika.com/smartika/Wordpress-Ansible
Some checks failed
CI/CD Pipeline / lint (push) Failing after 19s
CI/CD Pipeline / deploy (push) Failing after 47s
2025-12-17 11:03:39 +01:00
sotos
46582b611d Update 2025-12-17 11:03:08 +01:00
Robert Ose
ddcc2ace6a Merge branch 'main' of https://dns.s-martika.com/smartika/Wordpress-Ansible
Some checks failed
CI/CD Pipeline / lint (push) Failing after 17s
CI/CD Pipeline / deploy (push) Failing after 1m2s
2025-12-17 10:54:08 +01:00
Robert Ose
dc23f3ac69 update 2025-12-17 10:53:59 +01:00
sotos
1e1d4913a8 update
Some checks failed
CI/CD Pipeline / lint (push) Failing after 18s
CI/CD Pipeline / deploy (push) Failing after 42s
2025-12-17 10:48:06 +01:00
sotos
4f77663f89 Update 2025-12-17 10:44:03 +01:00
sotos
882a32f2dc Update
Some checks failed
CI/CD Pipeline / lint (push) Failing after 18s
CI/CD Pipeline / deploy (push) Failing after 1m29s
2025-12-17 10:33:05 +01:00
sotos
7d8f7d4658 Updtae
Some checks failed
CI/CD Pipeline / lint (push) Failing after 18s
CI/CD Pipeline / deploy (push) Failing after 48s
2025-12-17 10:15:52 +01:00
sotos
6dfca196a2 Update
Some checks failed
CI/CD Pipeline / lint (push) Failing after 19s
CI/CD Pipeline / deploy (push) Failing after 46s
2025-12-17 10:08:53 +01:00
sotos
0600f09f5b Funktionsfähig
Some checks failed
CI/CD Pipeline / lint (push) Failing after 17s
CI/CD Pipeline / deploy (push) Failing after 46s
2025-12-17 09:43:37 +01:00
sotos
90adb34542 update
Some checks failed
CI/CD Pipeline / lint (push) Failing after 18s
CI/CD Pipeline / deploy (push) Failing after 47s
2025-12-17 09:33:11 +01:00
sotos
8c871178cc asdf
Some checks failed
CI/CD Pipeline / lint (push) Failing after 18s
CI/CD Pipeline / deploy (push) Failing after 1m4s
2025-12-17 09:24:08 +01:00
sotos
6d4effa607 Funktionsfähig
Some checks failed
CI/CD Pipeline / lint (push) Failing after 18s
CI/CD Pipeline / deploy (push) Failing after 40s
2025-12-17 09:07:26 +01:00
sotos
d2102f88e7 Funktionsfähig
Some checks failed
CI/CD Pipeline / lint (push) Failing after 17s
CI/CD Pipeline / deploy (push) Failing after 40s
2025-12-17 09:02:57 +01:00
sotos
f28f43bdab asdf
Some checks failed
CI/CD Pipeline / lint (push) Failing after 18s
CI/CD Pipeline / deploy (push) Failing after 41s
2025-12-17 09:00:00 +01:00
sotos
2618ea8ec3 Funktionsfähig
Some checks failed
CI/CD Pipeline / lint (push) Failing after 18s
CI/CD Pipeline / deploy (push) Failing after 39s
2025-12-17 08:57:17 +01:00
sotos
c8f490d8aa Update
Some checks failed
CI/CD Pipeline / lint (push) Has been cancelled
CI/CD Pipeline / deploy (push) Failing after 39s
2025-12-17 08:54:14 +01:00
sotos
3108c915c8 Update
Some checks failed
CI/CD Pipeline / lint (push) Failing after 19s
CI/CD Pipeline / deploy (push) Failing after 39s
2025-12-17 08:52:24 +01:00
Robert Ose
7bade2f31e Merge branch 'main' of https://dns.s-martika.com/smartika/Wordpress-Ansible
Some checks failed
CI/CD Pipeline / lint (push) Failing after 17s
CI/CD Pipeline / deploy (push) Failing after 1m8s
2025-12-16 12:34:03 +01:00
Johannes Lanzinger
36dac62c67 altert dashbaord
Some checks failed
CI/CD Pipeline / lint (push) Failing after 18s
CI/CD Pipeline / deploy (push) Failing after 38s
2025-12-16 12:33:06 +01:00
Robert Ose
be029575ed Maaa
:erge branch 'main' of https://dns.s-martika.com/smartika/Wordpress-Ansible
2025-12-16 12:33:05 +01:00
sotos
ff224549ed UPdate
Some checks failed
CI/CD Pipeline / lint (push) Failing after 18s
CI/CD Pipeline / deploy (push) Failing after 39s
2025-12-16 12:27:08 +01:00
Robert Ose
6a49e454a9 fixed 2025-12-16 12:26:21 +01:00
sotos
10a48b6bc2 asdf
Some checks failed
CI/CD Pipeline / lint (push) Successful in 18s
CI/CD Pipeline / deploy (push) Failing after 41s
2025-12-16 12:17:04 +01:00
sotos
3ad932077f udpate
Some checks failed
CI/CD Pipeline / lint (push) Successful in 18s
CI/CD Pipeline / deploy (push) Failing after 39s
2025-12-16 12:13:34 +01:00
sotos
3d091967d8 update
Some checks failed
CI/CD Pipeline / lint (push) Successful in 18s
CI/CD Pipeline / deploy (push) Failing after 41s
2025-12-16 12:09:18 +01:00
sotos
943e99576e update
Some checks failed
CI/CD Pipeline / lint (push) Successful in 19s
CI/CD Pipeline / deploy (push) Failing after 40s
2025-12-16 12:04:19 +01:00
sotos
aefc23c307 update
Some checks failed
CI/CD Pipeline / lint (push) Successful in 18s
CI/CD Pipeline / deploy (push) Failing after 1m1s
2025-12-16 11:56:03 +01:00
sotos
c46887aace update
Some checks failed
CI/CD Pipeline / lint (push) Successful in 19s
CI/CD Pipeline / deploy (push) Failing after 41s
2025-12-16 11:54:33 +01:00
sotos
86ce2e9a64 Update
Some checks failed
CI/CD Pipeline / lint (push) Successful in 20s
CI/CD Pipeline / deploy (push) Failing after 42s
2025-12-16 11:38:50 +01:00
sotos
4f5602fb6d Update
Some checks failed
CI/CD Pipeline / lint (push) Successful in 18s
CI/CD Pipeline / deploy (push) Failing after 42s
2025-12-16 11:36:53 +01:00
sotos
68a5bccc0f deez
Some checks failed
CI/CD Pipeline / lint (push) Successful in 18s
CI/CD Pipeline / build (push) Failing after 22s
CI/CD Pipeline / deploy (push) Has been skipped
2025-12-16 11:33:34 +01:00
sotos
9e042fba2d update
Some checks failed
CI/CD Pipeline / lint (push) Failing after 28s
CI/CD Pipeline / build (push) Has been skipped
CI/CD Pipeline / deploy (push) Has been skipped
2025-12-16 11:32:23 +01:00
sotos
4d88e28f8b udpate
Some checks failed
CI/CD Pipeline / lint (push) Failing after 22s
CI/CD Pipeline / build (push) Has been skipped
CI/CD Pipeline / deploy (push) Has been skipped
2025-12-16 11:28:47 +01:00
sotos
ab8ceff931 udpate
Some checks failed
CI/CD Pipeline / lint (push) Failing after 19s
CI/CD Pipeline / build (push) Has been skipped
CI/CD Pipeline / deploy (push) Has been skipped
2025-12-16 11:26:25 +01:00
sotos
3cd1dd06dd udpate
Some checks failed
CI/CD Pipeline / lint (push) Failing after 52s
CI/CD Pipeline / build (push) Has been skipped
CI/CD Pipeline / deploy (push) Has been skipped
2025-12-16 11:21:10 +01:00
sotos
7f2b3811cb udpate
Some checks failed
CI/CD Pipeline / lint (push) Failing after 7s
CI/CD Pipeline / build (push) Has been skipped
CI/CD Pipeline / deploy (push) Has been skipped
2025-12-16 11:18:14 +01:00
sotos
2012dc8518 update
Some checks failed
CI/CD Pipeline / lint (push) Failing after 23s
CI/CD Pipeline / build (push) Has been skipped
CI/CD Pipeline / deploy (push) Has been skipped
2025-12-16 11:15:20 +01:00
sotos
7bcdf04ff2 update
Some checks failed
CI/CD Pipeline / lint (push) Failing after 25s
CI/CD Pipeline / build (push) Has been skipped
CI/CD Pipeline / deploy (push) Has been skipped
2025-12-16 11:11:28 +01:00
sotos
6f4e842a36 update cicd
Some checks failed
CI/CD Pipeline / lint (push) Failing after 24s
CI/CD Pipeline / build (push) Has been skipped
CI/CD Pipeline / deploy (push) Has been skipped
2025-12-16 11:05:07 +01:00
46dee4cb79 alte gitlab .yml gelöscht.
Some checks failed
CI/CD Pipeline / lint (push) Failing after 25s
CI/CD Pipeline / build (push) Has been skipped
CI/CD Pipeline / deploy (push) Has been skipped
2025-12-16 11:02:33 +01:00
32b6ca81b0 Update .gitea/workflows/yamllint.yml
Some checks failed
CI/CD Pipeline / lint (push) Failing after 22s
CI/CD Pipeline / build (push) Has been skipped
CI/CD Pipeline / deploy (push) Has been skipped
2025-12-16 10:00:07 +00:00
sotos
12b254b20b update cicd
Some checks failed
CI/CD Pipeline / lint (push) Failing after 25s
CI/CD Pipeline / build (push) Has been skipped
CI/CD Pipeline / deploy (push) Has been skipped
2025-12-16 09:48:22 +01:00
sotos
77066def09 ci/cd
Some checks failed
CI/CD Pipeline / lint (push) Failing after 5s
CI/CD Pipeline / build (push) Has been skipped
CI/CD Pipeline / deploy (push) Has been skipped
2025-12-16 09:47:15 +01:00
sotos
eb603ee508 ci/cd
Some checks failed
CI/CD Pipeline / lint (push) Failing after 25s
CI/CD Pipeline / build (push) Has been skipped
CI/CD Pipeline / deploy (push) Has been skipped
2025-12-16 09:44:46 +01:00
sotos
7576cdf0db ci/cd
Some checks failed
CI/CD Pipeline / lint (push) Failing after 10s
CI/CD Pipeline / build (push) Has been skipped
CI/CD Pipeline / deploy (push) Has been skipped
2025-12-16 09:42:58 +01:00
sotos
cd28c0f648 ci/cd
Some checks failed
CI/CD Pipeline / lint (push) Failing after 22s
CI/CD Pipeline / build (push) Has been skipped
CI/CD Pipeline / deploy (push) Has been skipped
2025-12-16 09:40:30 +01:00
sotos
76403b3831 ci/cd
Some checks failed
CI/CD Pipeline / lint (push) Failing after 0s
CI/CD Pipeline / build (push) Has been skipped
CI/CD Pipeline / deploy (push) Has been skipped
2025-12-16 09:37:42 +01:00
sotos
ce18fa16c0 ci/cd
Some checks failed
CI/CD Pipeline / lint (push) Failing after 0s
CI/CD Pipeline / build (push) Has been skipped
CI/CD Pipeline / deploy (push) Has been skipped
2025-12-16 09:35:04 +01:00
sotos
c51524531c workflow
Some checks failed
YAML Lint / yamllint (push) Failing after 6s
2025-12-16 09:13:00 +01:00
a8542458a2 Merge pull request 'teste die pipeline' (#1) from flip_dev into main
Reviewed-on: #1
2025-12-16 08:01:37 +00:00
1112c9a340 Update .gitlab-ci.yml 2025-12-16 08:01:04 +00:00
af3da06f8d teste die pipeline 2025-12-16 08:35:00 +01:00
15 changed files with 15922 additions and 37 deletions

View File

@@ -0,0 +1,70 @@
---
name: CI/CD Pipeline
"on":
push:
branches: [main, flip_dev, hannes]
jobs:
lint:
runs-on: docker
container:
image: node:20-bullseye
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install Python & linters
run: |
apt-get update && apt-get install -y python3 python3-pip bash git
pip3 install --upgrade pip
pip3 install yamllint ansible-lint
- name: Run linters
run: |
yamllint .
deploy:
runs-on: docker
container:
image: node:20-bullseye
needs: build
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install Ansible & dependencies
run: |
apt-get update && apt-get install -y python3 python3-pip openssh-client bash git
pip3 install --upgrade pip
pip3 install ansible
- name: Setup SSH
shell: bash
env:
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
SSH_PASSPHRASE: ${{ secrets.SSH_PASSPHRASE }}
run: |
set -euo pipefail
mkdir -p ~/.ssh
chmod 700 ~/.ssh
echo "$SSH_PRIVATE_KEY" | tr -d '\r' > ~/.ssh/id_ed25519
chmod 600 ~/.ssh/id_ed25519
ssh-keyscan -H 213.95.90.157 >> ~/.ssh/known_hosts
eval "$(ssh-agent -s)"
if [ -n "${SSH_PASSPHRASE:-}" ]; then
echo "$SSH_PASSPHRASE" | ssh-add ~/.ssh/id_ed25519
else
ssh-add ~/.ssh/id_ed25519
fi
ssh -o BatchMode=yes root@213.95.90.157 true
- name: Run Ansible
run: |
ansible-playbook -i ansible/inventory.yaml site.yaml

3
.vscode/settings.json vendored Normal file
View File

@@ -0,0 +1,3 @@
{
"ansible.python.interpreterPath": "/opt/homebrew/bin/python3"
}

19
.yamllint.yml Normal file
View File

@@ -0,0 +1,19 @@
---
extends: default
ignore: |
^venv/*
^\.venv/*
^\.gitea/*
^\.git/*
^\.ansible_test/*
^ansible_test/*
^\.ansiblelint/*
rules:
line-length:
max: 400
level: warning
trailing-spaces: disable
indentation:
spaces: 2

View File

@@ -2,3 +2,5 @@
[defaults]
inventory = ansible/inventory.yaml
roles_path = ./roles
[ssh_connection]
ssh_args = -o BatchMode=yes -o PreferredAuthentications=publickey

View File

@@ -4,4 +4,3 @@ all:
server1:
ansible_host: 213.95.90.157
ansible_user: root
ansible_ssh_private_key_file: /Users/sotos/.ssh/id_rsa

View File

@@ -1,24 +1,8 @@
---
- hosts: all
become: true
roles:
- docker/snake
vars:
app_dir: /opt/docker/snake
snake_image: dns.s-martika.com/smartika/snake-game:2.0
tasks:
- name: Create app directory
file:
path: "{{ app_dir }}"
state: directory
- name: Copy compose file
copy:
src: "{{ playbook_dir }}/roles/docker/snake/files/docker-compose.yaml"
dest: "{{ app_dir }}/docker-compose.yaml"
- name: Start snake container
command: docker compose up -d
args:
chdir: "{{ app_dir }}"
roles:
- role: docker/snake

View File

@@ -1,6 +1,6 @@
---
- hosts: all
become: yes
become: true
roles:
- role: docker/snake
@@ -10,7 +10,7 @@
name:
- ca-certificates
- curl
update_cache: yes
update_cache: true
- name: Install Docker
shell: curl -fsSL https://get.docker.com | sh

View File

@@ -3,7 +3,7 @@
gitea_user: smartika
gitea_token: "idNu783r4ub7ZXi"
snake_image: dns.s-martika.com/smartika/snake-game
snake_tag: "1.0"
snake_image: dns.s-martika.com/smartika/snake-game:2.0
app_dir: /opt/docker/snake
snake_container_name: snake-game
snake_port: 8080

View File

@@ -1,7 +1,8 @@
---
version: "3.8"
services:
snake:
image: dns.s-martika.com/smartika/snake-game:1.0
image: dns.s-martika.com/smartika/snake-game:2.0
container_name: snake-game777
restart: unless-stopped
ports:

View File

@@ -1,21 +1,36 @@
---
- name: Ensure app directory exists
file:
path: "{{ app_dir }}"
state: directory
owner: root
group: root
mode: '0755'
# Login to private registry
- name: Login to private registry
docker_login:
registry_url: dns.s-martika.com
username: "{{ gitea_user }}"
password: "{{ gitea_token }}"
# Pull latest image
- name: Pull snake-game image
docker_image:
name: dns.s-martika.com/smartika/snake-game
tag: "1.0"
name: "{{ snake_image }}"
source: pull
# Run container
- name: Run snake-game container
docker_container:
name: snake-game
image: dns.s-martika.com/smartika/snake-game:1.0
image: "{{ snake_image }}"
state: started
restart_policy: always
restart_policy: unless-stopped
ports:
- "8080:80"
- "8080:80" # host port → container port
pull: yes

View File

@@ -1,23 +1,36 @@
---
version: '3.8'
services:
prometheus:
image: prom/prometheus:latest
volumes:
- ./prometheus.yml:/etc/prometheus/prometheus.yml:ro
- ./prometheus.yaml:/etc/prometheus/prometheus.yml:ro
ports:
- "9090:9090"
networks:
- snake_net
restart: unless-stopped
nginx-prometheus-exporter:
image: nginx/nginx-prometheus-exporter:latest
container_name: nginx-prometheus-exporter
ports:
- "9113:9113"
environment:
- NGINX_STATUS_URL=http://nginx:8081/status
networks:
- snake_net
grafana:
image: grafana/grafana:latest
user: "472"
volumes:
- ./grafana/provisioning:/etc/grafana/provisioning:ro
- grafana_data:/var/lib/grafana
environment:
GF_SECURITY_ADMIN_PASSWORD: "admin"
GF_DASHBOARDS_DEFAULT_HOME_DASHBOARD_PATH: /var/lib/grafana/dashboards/home.json
ports:
- "3000:3000"
networks:

File diff suppressed because it is too large Load Diff

View File

@@ -1,9 +1,10 @@
---
apiVersion: 1
providers:
- name: default
orgId: 1
folder: ""
- name: 'default'
folder: 'Home'
type: file
editable: true
options:
path: /etc/grafana/provisioning/dashboards
path: /var/lib/grafana/dashboards

View File

@@ -1,3 +1,4 @@
---
apiVersion: 1
datasources:

View File

@@ -1,3 +1,4 @@
---
global:
scrape_interval: 15s
@@ -5,3 +6,7 @@ scrape_configs:
- job_name: "prometheus"
static_configs:
- targets: ["localhost:9090"]
- job_name: 'nginx'
static_configs:
- targets: ['nginx-prometheus-exporter:9113']