fix(cd): remove systemctl-based insecure registry config
All checks were successful
CI Pipeline / Backend Build & Test (push) Successful in 1m18s
CI Pipeline / Frontend Lint, Test & Build (push) Successful in 57s
CI Pipeline / Infrastructure Validation (push) Successful in 4s

- Remove 'Configure insecure registry' step from both backend and frontend jobs
- systemctl not available in Gitea Actions container environment
- Runner host must be pre-configured with insecure registry support
- Fixes: System has not been booted with systemd error
This commit is contained in:
WorkClub Automation
2026-03-08 15:18:27 +01:00
parent 145c47a439
commit 5e3968bd69

View File

@@ -82,20 +82,6 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4
- name: Configure insecure registry
run: |
sudo mkdir -p /etc/docker
if [ -f /etc/docker/daemon.json ] && [ -s /etc/docker/daemon.json ]; then
echo "$(jq '. + {"insecure-registries": ["${{ env.REGISTRY_HOST }}"]}' /etc/docker/daemon.json)" | sudo tee /etc/docker/daemon.json
else
echo '{"insecure-registries": ["${{ env.REGISTRY_HOST }}"]}' | sudo tee /etc/docker/daemon.json
fi
sudo systemctl restart docker
sleep 5
docker info | grep "Insecure Registries" -A 2
- name: Login to registry (if credentials provided)
if: ${{ secrets.REGISTRY_USERNAME != '' && secrets.REGISTRY_PASSWORD != '' }}
run: |
@@ -155,20 +141,6 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4
- name: Configure insecure registry
run: |
sudo mkdir -p /etc/docker
if [ -f /etc/docker/daemon.json ] && [ -s /etc/docker/daemon.json ]; then
echo "$(jq '. + {"insecure-registries": ["${{ env.REGISTRY_HOST }}"]}' /etc/docker/daemon.json)" | sudo tee /etc/docker/daemon.json
else
echo '{"insecure-registries": ["${{ env.REGISTRY_HOST }}"]}' | sudo tee /etc/docker/daemon.json
fi
sudo systemctl restart docker
sleep 5
docker info | grep "Insecure Registries" -A 2
- name: Login to registry (if credentials provided)
if: ${{ secrets.REGISTRY_USERNAME != '' && secrets.REGISTRY_PASSWORD != '' }}
run: |