Compare commits
8 Commits
3a726c832f
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
| b47aeca8fb | |||
|
|
64bc6c60e9 | ||
| e87c8292b1 | |||
| 5481bdae36 | |||
| 9ff01a0f4e | |||
|
|
19d36825c6 | ||
| bc47bd0943 | |||
| af28d1e17d |
@@ -41,4 +41,42 @@
|
|||||||
GITEA_INSTANCE_URL: "https://git.comprofix.com"
|
GITEA_INSTANCE_URL: "https://git.comprofix.com"
|
||||||
GITEA_RUNNER_REGISTRATION_TOKEN: "{{ GITEA_RUNNER_TOKEN }}"
|
GITEA_RUNNER_REGISTRATION_TOKEN: "{{ GITEA_RUNNER_TOKEN }}"
|
||||||
GITEA_RUNNER_NAME: "gtar-runner"
|
GITEA_RUNNER_NAME: "gtar-runner"
|
||||||
GITEA_RUNNER_LABELS: "alpine-latest:docker://alpine:latest,ubuntu-latest:docker://node:22-trixie,gtar-latest:docker://git.comprofix.com/mmckinnon/debian-latest:latest"
|
GITEA_RUNNER_LABELS: "alpine-latest:docker://git.comprofix.com/mmckinnon/alpine-runner:latest,ubuntu-latest:docker://node:22-trixie,homelab-latest:docker://git.comprofix.com/mmckinnon/debian-latest:latest"
|
||||||
|
|
||||||
|
- name: Create pull-ci-images.sh script
|
||||||
|
copy:
|
||||||
|
dest: /usr/local/bin/pull-ci-images.sh
|
||||||
|
mode: '0755'
|
||||||
|
owner: root
|
||||||
|
group: root
|
||||||
|
content: |
|
||||||
|
#!/bin/bash
|
||||||
|
set -euo pipefail
|
||||||
|
|
||||||
|
IMAGES=(
|
||||||
|
"ghcr.io/renovatebot/renovate:latest"
|
||||||
|
"git.comprofix.com/mmckinnon/alpine-runner:latest"
|
||||||
|
"git.comprofix.com/mmckinnon/debian-latest:latest"
|
||||||
|
"node:22-trixie"
|
||||||
|
"catthehacker/ubuntu:act-latest"
|
||||||
|
)
|
||||||
|
|
||||||
|
echo "Starting image pull at $(date)"
|
||||||
|
|
||||||
|
for image in "${IMAGES[@]}"; do
|
||||||
|
echo "Pulling $image..."
|
||||||
|
docker pull "$image"
|
||||||
|
done
|
||||||
|
|
||||||
|
echo "Pruning old images..."
|
||||||
|
docker image prune -af --filter "until=168h"
|
||||||
|
|
||||||
|
echo "Image pull completed at $(date)"
|
||||||
|
|
||||||
|
- name: Ensure cron job for pulling CI images exists
|
||||||
|
cron:
|
||||||
|
name: "Pull latest CI images daily"
|
||||||
|
user: "{{ ansible_user_id }}"
|
||||||
|
job: "/usr/local/bin/pull-ci-images.sh >> /var/log/pull-ci-images.log 2>&1"
|
||||||
|
hour: 2
|
||||||
|
minute: 0
|
||||||
@@ -18,12 +18,12 @@ resource "proxmox_lxc" "gtar" {
|
|||||||
${var.ssh_key}
|
${var.ssh_key}
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
memory = "4096"
|
memory = "8192"
|
||||||
swap = "512"
|
swap = "512"
|
||||||
|
|
||||||
rootfs {
|
rootfs {
|
||||||
storage = "local"
|
storage = "local"
|
||||||
size = "8G"
|
size = "20G"
|
||||||
}
|
}
|
||||||
|
|
||||||
features {
|
features {
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ terraform {
|
|||||||
required_providers {
|
required_providers {
|
||||||
proxmox = {
|
proxmox = {
|
||||||
source = "telmate/proxmox"
|
source = "telmate/proxmox"
|
||||||
version = "3.0.2-rc04"
|
version = "3.0.2-rc05"
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,27 +5,11 @@
|
|||||||
":semanticCommitTypeAll(chore)"
|
":semanticCommitTypeAll(chore)"
|
||||||
],
|
],
|
||||||
"ignoreDeps": ["postgres"],
|
"ignoreDeps": ["postgres"],
|
||||||
"regexManagers": [
|
"commitBodyTable": true,
|
||||||
{
|
"ignoreTests": true,
|
||||||
"fileMatch": ["group_vars/all.yml"],
|
"major": {
|
||||||
"matchStrings": ["^(\\s*(?<depName>\\w+_latest_image):\\s*\"?(?<currentValue>[^\"]+)\"?)"],
|
"automerge": false,
|
||||||
"datasourceTemplate": "docker",
|
"commitMessagePrefix": "chore(deps-major): ",
|
||||||
"depNameTemplate": "{{ currentValue }}",
|
"labels": ["dependencies", "breaking"]
|
||||||
"versioningTemplate": "docker",
|
|
||||||
"pinDigests": true
|
|
||||||
}
|
}
|
||||||
],
|
|
||||||
"packageRules": [
|
|
||||||
{
|
|
||||||
"managers": ["docker"],
|
|
||||||
"matchPackageNames": ["alpine", "node"],
|
|
||||||
"pinDigests": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"managers": ["docker"],
|
|
||||||
"matchPackageNames": ["git.comprofix.com/mmckinnon/debian-latest"],
|
|
||||||
"registryUrls": ["https://git.comprofix.com/v2/"],
|
|
||||||
"pinDigests": true
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user