Skip to content

Commit 94e634d

Browse files
committed
Test refresh of internal CA doesn't break the bundle
1 parent f3f978e commit 94e634d

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

.github/workflows/test.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -420,16 +420,20 @@ jobs:
420420
--initial-admin-password=changeme \
421421
--tuning development \
422422
--add-feature foreman-proxy
423-
- name: Remove old parameters.yaml
424-
run: rm -f .var/lib/foremanctl/parameters.yaml
425423
- name: Generate certificates bundle on quadlet
426424
run: |
427425
./foremanctl certificate-bundle proxy.example.com \
428-
--certificate-source=${{ matrix.certificate_source }} \
429426
${{ matrix.certificate_source == 'custom_server' && '--certificate-server-certificate /root/custom-certificates/certs/proxy.example.com.crt --certificate-server-key /root/custom-certificates/private/proxy.example.com.key' || '' }}
427+
- name: Refresh internal CA to ensure it doesn't break the bundle
428+
if: matrix.certificate_source != 'custom_server'
429+
run: |
430+
./foremanctl deploy --certificate-renew-ca
430431
- name: Fetch certificates bundle from quadlet
431432
run: |
432433
./forge fetch-bundle proxy.example.com
434+
- name: Remove old parameters, but keep certificates_source for tests
435+
run: |
436+
echo "certificates_source: ${{ matrix.certificate_source }}" > .var/lib/foremanctl/parameters.yaml
433437
- name: Deploy content proxy
434438
run: |
435439
./foremanctl deploy-proxy \

0 commit comments

Comments
 (0)