5 Commits

Author SHA1 Message Date
WorkClub Automation
49466839a3 fix(cd): add insecure registry config for HTTP push
Some checks failed
CI Pipeline / Backend Build & Test (push) Failing after 1m19s
CI Pipeline / Frontend Lint, Test & Build (push) Successful in 56s
CI Pipeline / Infrastructure Validation (push) Successful in 4s
- Add Docker daemon configuration step to both backend and frontend jobs
- Configure insecure-registries to allow HTTP connections to registry
- Restart Docker daemon and verify configuration
- Resolves HTTP error when pushing to HTTP-only registry at 192.168.241.13:8080
2026-03-08 15:03:02 +01:00
6a912412c6 Enforce http for Registry
All checks were successful
CI Pipeline / Backend Build & Test (push) Successful in 1m27s
CI Pipeline / Frontend Lint, Test & Build (push) Successful in 58s
CI Pipeline / Infrastructure Validation (push) Successful in 5s
2026-03-08 14:52:47 +01:00
WorkClub Automation
01d5e1e330 fix(cd): change workflow to manual trigger with inputs
All checks were successful
CI Pipeline / Backend Build & Test (push) Successful in 1m27s
CI Pipeline / Frontend Lint, Test & Build (push) Successful in 58s
CI Pipeline / Infrastructure Validation (push) Successful in 53s
2026-03-08 14:37:25 +01:00
b4b9d23429 next ci test
All checks were successful
CI Pipeline / Backend Build & Test (push) Successful in 1m25s
CI Pipeline / Frontend Lint, Test & Build (push) Successful in 1m3s
CI Pipeline / Infrastructure Validation (push) Successful in 4s
2026-03-08 14:27:08 +01:00
7d9e7d146e simle test to force ci
All checks were successful
CI Pipeline / Backend Build & Test (push) Successful in 1m10s
CI Pipeline / Frontend Lint, Test & Build (push) Successful in 1m0s
CI Pipeline / Infrastructure Validation (push) Successful in 4s
2026-03-08 14:22:56 +01:00

View File

@@ -20,7 +20,7 @@ on:
type: boolean type: boolean
env: env:
REGISTRY_HOST: 192.168.241.13:8080 REGISTRY_HOST: http://192.168.241.13:8080
BACKEND_IMAGE: workclub-api BACKEND_IMAGE: workclub-api
FRONTEND_IMAGE: workclub-frontend FRONTEND_IMAGE: workclub-frontend
@@ -82,6 +82,20 @@ jobs:
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v4 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) - name: Login to registry (if credentials provided)
if: ${{ secrets.REGISTRY_USERNAME != '' && secrets.REGISTRY_PASSWORD != '' }} if: ${{ secrets.REGISTRY_USERNAME != '' && secrets.REGISTRY_PASSWORD != '' }}
run: | run: |
@@ -141,6 +155,20 @@ jobs:
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v4 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) - name: Login to registry (if credentials provided)
if: ${{ secrets.REGISTRY_USERNAME != '' && secrets.REGISTRY_PASSWORD != '' }} if: ${{ secrets.REGISTRY_USERNAME != '' && secrets.REGISTRY_PASSWORD != '' }}
run: | run: |