Commit Graph

141 Commits

Author SHA1 Message Date
Artur Kuś 053a31416e info about project and wireGuard 2025-09-09 10:10:01 +02:00
Artur Kuś 9641ef4a8c some changes with domain 2025-09-08 14:21:15 +02:00
Artur Kuś 228e684f52 changing to _sd_ for programs 2025-09-08 14:07:53 +02:00
Artur Kuś 946b00599c +plecianki.pl 2025-09-08 13:41:02 +02:00
Artur Kuś 03979730e9 _sd_ 2025-09-04 23:46:33 +02:00
Artur Kuś b4e0ee381e _sd_ 2025-09-04 23:43:39 +02:00
Artur Kuś 01eca704e7 _sd_ 2025-09-04 23:39:57 +02:00
Artur Kuś 36e1417af1 _sd_ 2025-09-04 23:29:57 +02:00
Artur Kuś 8a1061fa07 _sd_ 2025-09-04 23:28:00 +02:00
Artur Kuś cf26af6d63 _sd_ 2025-09-04 23:19:57 +02:00
Artur Kuś 1fffd748a3 workspace jenkins to _sd_ 2025-09-04 23:18:28 +02:00
Artur Kuś 93e40dd325 workspace jenkins to _sd_ 2025-09-04 23:18:12 +02:00
Artur Kuś c1447b3d15 workspace jenkins to _sd_ 2025-09-04 23:14:18 +02:00
Artur Kuś b8b2bfbd55 workspace jenkins to _sd_ 2025-09-04 23:07:35 +02:00
Artur Kuś 3424d5141a workspace jenkins to _sd_ 2025-09-04 23:05:37 +02:00
Artur Kuś 1312da03db workspace jenkins to _sd_ 2025-09-04 23:04:02 +02:00
Artur Kuś b41325578b workspace jenkins to _sD_ 2025-09-04 22:59:11 +02:00
Artur Kuś 19a05f82eb workspace jenkinsa to _sd_ 2025-09-04 22:56:50 +02:00
Artur Kuś 2938e6143d restore update 2025-09-04 22:35:50 +02:00
Artur Kuś 0d63da9718 file-exist 2025-09-04 22:19:10 +02:00
Artur Kuś ede5718102 _sd_ 2025-09-04 21:55:29 +02:00
Artur Kuś e47d4156c0 nowy credentials dla Jenkins 2025-09-04 14:35:28 +02:00
Artur Kuś 3fec7091ba Bezpiecznie używał poświadczeń (withCredentials) – hasło nie wycieknie w
logach.

Obsługiwał aktualizację istniejących katalogów i klonowanie nowych.

Pobierał tylko ostatni rok historii (--shallow-since="1 year ago").

Nie zostawiał pustych katalogów, jeśli klon się nie powiedzie.
2025-09-04 12:05:03 +02:00
Artur Kuś 2756d0042e error in empty project ? why ? 2025-09-04 11:54:21 +02:00
Artur Kuś 52b5e51c72 credit for gitea .. again 2025-09-04 11:39:14 +02:00
Artur Kuś e5529f5498 def git_take(projects, git_remote) {
withCredentials([usernamePassword(credentialsId: 'gitea-creds',
usernameVariable: 'GIT_USER', passwordVariable: 'GIT_PASS')]) {
        projects.each { project ->
            if (fileExists(project)) {
                dir(project) {
                    sh '''
                        echo "=== Updating ${project} ==="
                        git remote set-url origin
https://${GIT_USER}:${GIT_PASS}@git.arti24.eu/gitea/${project}.git
                        git fetch origin
                        git reset --hard origin/main
                    '''
                }
            } else {
                sh '''
                    echo "=== Cloning ${project} ==="
                    git clone
https://${GIT_USER}:${GIT_PASS}@git.arti24.eu/gitea/${project}.git
                '''
            }
            dir(project) {
                sh "git --no-pager log -n 1 --pretty=format:'%h %ad %s'
--date=short"
            }
        }
    }
}
2025-09-04 11:36:51 +02:00
Artur Kuś 6817266717 credintials 2025-09-04 11:28:37 +02:00
Artur Kuś 7c0258246e some changes with git clone and fetch 2025-09-04 11:25:28 +02:00
Artur Kuś cb3c073681 adding credintials id 2025-09-04 11:19:13 +02:00
Artur Kuś a4f5f585ed sd_ -> _sd_ 2025-09-04 10:39:15 +02:00
Artur Kuś eb18885fa1 Update to /sd_/_programs 2025-09-04 08:24:59 +02:00
Artur Kuś 5d868298cd _sd -> _sd_ 2025-09-04 07:23:08 +02:00
Artur Kuś 4258909f90 Removing apps-data 2025-09-04 07:20:23 +02:00
Artur Kuś e5229f28db +kopama.com.pl 2025-09-02 18:17:37 +02:00
Artur Kuś c332e96703 command: /bin/sh -c "mkdir -p /var/cache/nginx && nginx -g 'daemon
off;'"
2025-08-18 20:46:59 +02:00
Artur Kuś fff66d85f8 - nginx_cache:/var/cache/ngin 2025-08-18 20:40:44 +02:00
Artur Kuś 51cb8238f4 cache optymalisation 2025-08-18 20:15:23 +02:00
Artur Kuś 68fd364022 command: /bin/sh -c "mkdir -p /var/cache/nginx05GB
/var/cache/nginx2GB && nginx -g 'daemon off;'"
2025-08-18 19:16:24 +02:00
Artur Kuś 57bf0df570 correction of deploy-dc 2025-08-18 19:07:10 +02:00
Artur Kuś 7b87c59e7a some change in volumes 2025-08-18 19:05:01 +02:00
Artur Kuś 0615e7ea51 New configuration of cache 2025-08-18 18:52:06 +02:00
Artur Kuś aa0fbb55f1 Chaning deploy-dc for nginx prepare to cache 2025-08-18 17:54:14 +02:00
Artur Kuś dcd8b4213b restore correct path letsencrypt! + NGINX_ENVSUBST_TEMPLATE_DIR:
/etc/nginx/templates
      NGINX_ENVSUBST_OUTPUT_DIR: /etc/nginx/conf.d
2025-08-18 17:35:11 +02:00
Artur Kuś cdd260efc5 Removing
NGINX_ENVSUBST_TEMPLATE_DIR: /etc/nginx/templates
NGINX_ENVSUBST_OUTPUT_DIR: /etc/nginx/conf.d
from
    environment:
      TZ: Europe/Warsaw
2025-08-18 17:24:06 +02:00
Artur Kuś a31399f32f Prepare to cache in nginx 2025-08-18 16:57:04 +02:00
Artur Kuś 7d60421528 Restart on swarm! 2025-08-15 07:28:11 +02:00
Artur Kuś 98af9c45d5 " --email ${env.LETSENCRYPT_EMAIL ?: 'kusartur@gmail.com'}" + 2025-08-13 08:04:31 +02:00
Artur Kuś 837144a60b Sprawdzanie daty wygaśnięcia (daysLeft):
Jeśli < 30 dni → certyfikat do odnowienia.

Obsługa pustych/uszkodzonych certyfikatów:

    Jeśli openssl zwróci pusty wynik, skrypt uzna, że certyfikat jest
niepełny.

Zmienne środowiskowe dla e-maila:

    Można ustawić LETSENCRYPT_EMAIL w Jenkinsie, w .env lub jako
parametr pipeline.

Czytelne logi:

    W logu widać brakujące domeny i ile dni zostało do wygaśnięcia.
2025-08-13 07:58:09 +02:00
Artur Kuś 40fb1a7cf9 New version of create certificates 2025-08-13 07:43:09 +02:00
Artur Kuś 78d17cc459 def domainsToCert = [
[ false, 'bodypainter.eu', "www", "mail", "stat"],
    [ false, 'themself.eu', "www", "mail", "stat", "massage", "driving"
],

	[  false, "artiks.tk", "www", "mail", "api", "angular",  "bodypainter",
"themself","arti24"],
	[  false, "arti24.eu", "www",  "api", "angular",  "ai",  "job-finder",
"zaklik"]
2025-07-30 21:44:31 +02:00