From 3fd3031a1ba41234e06347e319a068b5fc0f7bd2 Mon Sep 17 00:00:00 2001 From: "Endi S. Dewata" Date: Wed, 18 Oct 2023 15:48:48 -0500 Subject: [PATCH] Replace BASE64_DATABASE with DB_IMAGE The BASE64_DATABASE secret has been replaced with DB_IMAGE variable since it's easier to configure. https://github.com/dogtagpki/pki/wiki/Configuring-Test-Database --- .github/workflows/PKICertImport-test.yml | 10 +++--- .github/workflows/acme-certbot-test.yml | 12 +++---- .github/workflows/acme-container-test.yml | 10 +++--- .github/workflows/acme-postgresql-test.yml | 12 +++---- .github/workflows/acme-switchover-test.yml | 12 +++---- .github/workflows/acme-tests.yml | 8 ----- .github/workflows/ca-admin-user-test.yml | 12 +++---- .github/workflows/ca-basic-test.yml | 12 +++---- .github/workflows/ca-clone-hsm-test.yml | 16 ++++----- .../workflows/ca-clone-replicated-ds-test.yml | 14 ++++---- .github/workflows/ca-clone-secure-ds-test.yml | 10 +++--- .github/workflows/ca-clone-shared-ds-test.yml | 12 +++---- .github/workflows/ca-clone-test.yml | 16 ++++----- .github/workflows/ca-clone-tests.yml | 10 ------ .../workflows/ca-cmc-shared-token-test.yml | 12 +++---- .github/workflows/ca-container-test.yml | 12 +++---- .github/workflows/ca-crl-test.yml | 12 +++---- .github/workflows/ca-ds-connection-test.yml | 12 +++---- .github/workflows/ca-ecc-test.yml | 12 +++---- .github/workflows/ca-existing-certs-test.yml | 12 +++---- .github/workflows/ca-existing-ds-test.yml | 12 +++---- .github/workflows/ca-existing-hsm-test.yml | 12 +++---- .github/workflows/ca-existing-nssdb-test.yml | 12 +++---- .github/workflows/ca-hsm-test.yml | 12 +++---- .../workflows/ca-non-default-user-test.yml | 12 +++---- .../ca-notification-request-test.yml | 12 +++---- .github/workflows/ca-nuxwdog-test.yml | 12 +++---- .../ca-profile-caDirUserCert-test.yml | 12 +++---- .../ca-profile-caServerCert-test.yml | 12 +++---- .github/workflows/ca-pruning-test.yml | 12 +++---- .../workflows/ca-publishing-ca-cert-test.yml | 12 +++---- .../workflows/ca-publishing-crl-file-test.yml | 12 +++---- .../workflows/ca-publishing-crl-ldap-test.yml | 12 +++---- .../ca-publishing-user-cert-test.yml | 12 +++---- .github/workflows/ca-rsa-pss-test.yml | 12 +++---- .github/workflows/ca-rsa-test.yml | 12 +++---- .github/workflows/ca-rsnv1-test.yml | 12 +++---- .github/workflows/ca-secure-ds-test.yml | 10 +++--- .github/workflows/ca-sequential-test.yml | 12 +++---- .github/workflows/ca-tests.yml | 36 ------------------- .github/workflows/ca-tests2.yml | 20 ----------- .github/workflows/ipa-acme-test.yml | 10 +++--- .github/workflows/ipa-basic-test.yml | 10 +++--- .github/workflows/ipa-clone-test.yml | 10 +++--- .github/workflows/ipa-subca-test.yml | 10 +++--- .github/workflows/ipa-tests.yml | 8 ----- .github/workflows/kra-basic-test.yml | 12 +++---- .github/workflows/kra-clone-hsm-test.yml | 16 ++++----- .../workflows/kra-clone-shared-ds-test.yml | 12 +++---- .github/workflows/kra-clone-test.yml | 16 ++++----- .github/workflows/kra-cmc-test.yml | 14 ++++---- .github/workflows/kra-external-certs-test.yml | 14 ++++---- .github/workflows/kra-hsm-test.yml | 12 +++---- .github/workflows/kra-oaep-test.yml | 12 +++---- .github/workflows/kra-separate-test.yml | 14 ++++---- .github/workflows/kra-sequential-test.yml | 12 +++---- .github/workflows/kra-standalone-test.yml | 12 +++---- .github/workflows/kra-tests.yml | 22 ------------ .github/workflows/ocsp-basic-test.yml | 12 +++---- .github/workflows/ocsp-clone-test.yml | 16 ++++----- .github/workflows/ocsp-cmc-test.yml | 14 ++++---- .github/workflows/ocsp-crl-direct-test.yml | 14 ++++---- .github/workflows/ocsp-crl-ldap-test.yml | 14 ++++---- .../workflows/ocsp-external-certs-test.yml | 14 ++++---- .github/workflows/ocsp-hsm-test.yml | 12 +++---- .github/workflows/ocsp-separate-test.yml | 14 ++++---- .github/workflows/ocsp-standalone-test.yml | 12 +++---- .github/workflows/ocsp-tests.yml | 18 ---------- .github/workflows/pki-nss-aes-test.yml | 10 +++--- .github/workflows/pki-nss-ecc-test.yml | 10 +++--- .github/workflows/pki-nss-exts-test.yml | 10 +++--- .github/workflows/pki-nss-hsm-test.yml | 10 +++--- .github/workflows/pki-nss-rsa-test.yml | 10 +++--- .github/workflows/pki-pkcs11-test.yml | 10 +++--- .github/workflows/pki-pkcs12-test.yml | 10 +++--- .github/workflows/pki-pkcs7-test.yml | 10 +++--- .github/workflows/rpminspect-test.yml | 10 +++--- .github/workflows/scep-test.yml | 12 +++---- .github/workflows/server-backup-test.yml | 10 +++--- .github/workflows/server-basic-test.yml | 10 +++--- .github/workflows/server-container-test.yml | 10 +++--- .github/workflows/server-https-jks-test.yml | 10 +++--- .github/workflows/server-https-nss-test.yml | 10 +++--- .github/workflows/server-https-pem-test.yml | 10 +++--- .../workflows/server-https-pkcs12-test.yml | 10 +++--- .github/workflows/server-tests.yml | 16 --------- .github/workflows/server-upgrade-test.yml | 10 +++--- .github/workflows/subca-basic-test.yml | 14 ++++---- .github/workflows/subca-clone-hsm-test.yml | 14 ++++---- .github/workflows/subca-clone-test.yml | 14 ++++---- .github/workflows/subca-cmc-test.yml | 14 ++++---- .github/workflows/subca-external-test.yml | 12 +++---- .github/workflows/subca-hsm-test.yml | 12 +++---- .../workflows/subca-lightweight-hsm-test.yml | 12 +++---- .github/workflows/subca-lightweight-test.yml | 12 +++---- .github/workflows/subca-tests.yml | 16 --------- .github/workflows/tks-basic-test.yml | 12 +++---- .github/workflows/tks-clone-test.yml | 16 ++++----- .github/workflows/tks-external-certs-test.yml | 14 ++++---- .github/workflows/tks-hsm-test.yml | 12 +++---- .github/workflows/tks-separate-test.yml | 14 ++++---- .github/workflows/tks-tests.yml | 10 ------ .github/workflows/tools-tests.yml | 20 ----------- .github/workflows/tps-basic-test.yml | 12 +++---- .github/workflows/tps-clone-test.yml | 14 ++++---- .github/workflows/tps-external-certs-test.yml | 18 +++++----- .github/workflows/tps-hsm-test.yml | 12 +++---- .github/workflows/tps-separate-test.yml | 18 +++++----- .github/workflows/tps-tests.yml | 10 ------ 109 files changed, 494 insertions(+), 882 deletions(-) diff --git a/.github/workflows/PKICertImport-test.yml b/.github/workflows/PKICertImport-test.yml index f57346bbee0..57b7d9b4a27 100644 --- a/.github/workflows/PKICertImport-test.yml +++ b/.github/workflows/PKICertImport-test.yml @@ -1,11 +1,9 @@ name: PKICertImport -on: - workflow_call: - inputs: - db-image: - required: false - type: string +on: workflow_call + +env: + DB_IMAGE: ${{ vars.DB_IMAGE || 'quay.io/389ds/dirsrv' }} jobs: test: diff --git a/.github/workflows/acme-certbot-test.yml b/.github/workflows/acme-certbot-test.yml index 72dd56e4b6e..26bc3e1d2c0 100644 --- a/.github/workflows/acme-certbot-test.yml +++ b/.github/workflows/acme-certbot-test.yml @@ -1,11 +1,9 @@ name: ACME with certbot -on: - workflow_call: - inputs: - db-image: - required: false - type: string +on: workflow_call + +env: + DB_IMAGE: ${{ vars.DB_IMAGE || 'quay.io/389ds/dirsrv' }} jobs: # docs/installation/acme/Installing_PKI_ACME_Responder.md @@ -35,7 +33,7 @@ jobs: run: | tests/bin/ds-container-create.sh ds env: - IMAGE: ${{ inputs.db-image }} + IMAGE: ${{ env.DB_IMAGE }} HOSTNAME: ds.example.com PASSWORD: Secret.123 diff --git a/.github/workflows/acme-container-test.yml b/.github/workflows/acme-container-test.yml index 3815f8fcc1c..8d29b162d49 100644 --- a/.github/workflows/acme-container-test.yml +++ b/.github/workflows/acme-container-test.yml @@ -1,11 +1,9 @@ name: ACME container -on: - workflow_call: - inputs: - db-image: - required: false - type: string +on: workflow_call + +env: + DB_IMAGE: ${{ vars.DB_IMAGE || 'quay.io/389ds/dirsrv' }} jobs: # docs/installation/podman/Deploying_PKI_ACME_Responder_on_Podman.md diff --git a/.github/workflows/acme-postgresql-test.yml b/.github/workflows/acme-postgresql-test.yml index 37223bbf2c6..467f792ebb5 100644 --- a/.github/workflows/acme-postgresql-test.yml +++ b/.github/workflows/acme-postgresql-test.yml @@ -1,11 +1,9 @@ name: ACME with postgresql back-end -on: - workflow_call: - inputs: - db-image: - required: false - type: string +on: workflow_call + +env: + DB_IMAGE: ${{ vars.DB_IMAGE || 'quay.io/389ds/dirsrv' }} jobs: # docs/installation/acme/Installing_PKI_ACME_Responder.md @@ -34,7 +32,7 @@ jobs: run: | tests/bin/ds-container-create.sh ds env: - IMAGE: ${{ inputs.db-image }} + IMAGE: ${{ env.DB_IMAGE }} HOSTNAME: ds.example.com PASSWORD: Secret.123 diff --git a/.github/workflows/acme-switchover-test.yml b/.github/workflows/acme-switchover-test.yml index 43633f8c11a..a7bf3bef1c2 100644 --- a/.github/workflows/acme-switchover-test.yml +++ b/.github/workflows/acme-switchover-test.yml @@ -1,11 +1,9 @@ name: ACME server switchover -on: - workflow_call: - inputs: - db-image: - required: false - type: string +on: workflow_call + +env: + DB_IMAGE: ${{ vars.DB_IMAGE || 'quay.io/389ds/dirsrv' }} jobs: # This test verifies that in a cluster the baseURL parameter can be used @@ -35,7 +33,7 @@ jobs: run: | tests/bin/ds-container-create.sh ds env: - IMAGE: ${{ inputs.db-image }} + IMAGE: ${{ env.DB_IMAGE }} HOSTNAME: ds.example.com PASSWORD: Secret.123 diff --git a/.github/workflows/acme-tests.yml b/.github/workflows/acme-tests.yml index d46dda2af74..266cb862324 100644 --- a/.github/workflows/acme-tests.yml +++ b/.github/workflows/acme-tests.yml @@ -96,29 +96,21 @@ jobs: name: ACME with certbot needs: [init, build] uses: ./.github/workflows/acme-certbot-test.yml - with: - db-image: ${{ needs.init.outputs.db-image }} acme-switchover-test: name: ACME server switchover needs: [init, build] uses: ./.github/workflows/acme-switchover-test.yml - with: - db-image: ${{ needs.init.outputs.db-image }} acme-container-test: name: ACME container needs: [init, build] uses: ./.github/workflows/acme-container-test.yml - with: - db-image: ${{ needs.init.outputs.db-image }} acme-postgresql-test: name: ACME with postgresql back-end needs: [init, build] uses: ./.github/workflows/acme-postgresql-test.yml - with: - db-image: ${{ needs.init.outputs.db-image }} publish: if: github.event_name == 'push' && github.ref_name == 'master' diff --git a/.github/workflows/ca-admin-user-test.yml b/.github/workflows/ca-admin-user-test.yml index 6282b253705..897e4371089 100644 --- a/.github/workflows/ca-admin-user-test.yml +++ b/.github/workflows/ca-admin-user-test.yml @@ -1,11 +1,9 @@ name: CA admin user -on: - workflow_call: - inputs: - db-image: - required: false - type: string +on: workflow_call + +env: + DB_IMAGE: ${{ vars.DB_IMAGE || 'quay.io/389ds/dirsrv' }} jobs: test: @@ -33,7 +31,7 @@ jobs: run: | tests/bin/ds-container-create.sh ds env: - IMAGE: ${{ inputs.db-image }} + IMAGE: ${{ env.DB_IMAGE }} HOSTNAME: ds.example.com PASSWORD: Secret.123 diff --git a/.github/workflows/ca-basic-test.yml b/.github/workflows/ca-basic-test.yml index d7ece1d2a94..58f76086258 100644 --- a/.github/workflows/ca-basic-test.yml +++ b/.github/workflows/ca-basic-test.yml @@ -1,11 +1,9 @@ name: Basic CA -on: - workflow_call: - inputs: - db-image: - required: false - type: string +on: workflow_call + +env: + DB_IMAGE: ${{ vars.DB_IMAGE || 'quay.io/389ds/dirsrv' }} jobs: # docs/installation/ca/Installing_CA.md @@ -34,7 +32,7 @@ jobs: run: | tests/bin/ds-container-create.sh ds env: - IMAGE: ${{ inputs.db-image }} + IMAGE: ${{ env.DB_IMAGE }} HOSTNAME: ds.example.com PASSWORD: Secret.123 diff --git a/.github/workflows/ca-clone-hsm-test.yml b/.github/workflows/ca-clone-hsm-test.yml index b70a0f4c25a..bc1462cbbb7 100644 --- a/.github/workflows/ca-clone-hsm-test.yml +++ b/.github/workflows/ca-clone-hsm-test.yml @@ -1,11 +1,9 @@ name: CA clone with HSM -on: - workflow_call: - inputs: - db-image: - required: false - type: string +on: workflow_call + +env: + DB_IMAGE: ${{ vars.DB_IMAGE || 'quay.io/389ds/dirsrv' }} jobs: # docs/installation/ca/Installing_CA_Clone_with_HSM.md @@ -34,7 +32,7 @@ jobs: run: | tests/bin/ds-container-create.sh primaryds env: - IMAGE: ${{ inputs.db-image }} + IMAGE: ${{ env.DB_IMAGE }} HOSTNAME: primaryds.example.com PASSWORD: Secret.123 @@ -123,7 +121,7 @@ jobs: run: | tests/bin/ds-container-create.sh secondaryds env: - IMAGE: ${{ inputs.db-image }} + IMAGE: ${{ env.DB_IMAGE }} HOSTNAME: secondaryds.example.com PASSWORD: Secret.123 @@ -279,7 +277,7 @@ jobs: run: | tests/bin/ds-container-create.sh tertiaryds env: - IMAGE: ${{ inputs.db-image }} + IMAGE: ${{ env.DB_IMAGE }} HOSTNAME: tertiaryds.example.com PASSWORD: Secret.123 diff --git a/.github/workflows/ca-clone-replicated-ds-test.yml b/.github/workflows/ca-clone-replicated-ds-test.yml index 84fde901dcd..49bc4277de5 100644 --- a/.github/workflows/ca-clone-replicated-ds-test.yml +++ b/.github/workflows/ca-clone-replicated-ds-test.yml @@ -1,12 +1,10 @@ name: CA clone with replicated DS # https://github.com/dogtagpki/pki/wiki/Installing-CA-Clone-with-Replicated-DS -on: - workflow_call: - inputs: - db-image: - required: false - type: string +on: workflow_call + +env: + DB_IMAGE: ${{ vars.DB_IMAGE || 'quay.io/389ds/dirsrv' }} jobs: test: @@ -34,7 +32,7 @@ jobs: run: | tests/bin/ds-container-create.sh primaryds env: - IMAGE: ${{ inputs.db-image }} + IMAGE: ${{ env.DB_IMAGE }} HOSTNAME: primaryds.example.com PASSWORD: Secret.123 @@ -77,7 +75,7 @@ jobs: run: | tests/bin/ds-container-create.sh secondaryds env: - IMAGE: ${{ inputs.db-image }} + IMAGE: ${{ env.DB_IMAGE }} HOSTNAME: secondaryds.example.com PASSWORD: Secret.123 diff --git a/.github/workflows/ca-clone-secure-ds-test.yml b/.github/workflows/ca-clone-secure-ds-test.yml index 4d67c57202a..05c28d02c26 100644 --- a/.github/workflows/ca-clone-secure-ds-test.yml +++ b/.github/workflows/ca-clone-secure-ds-test.yml @@ -1,11 +1,9 @@ name: CA clone with secure DS -on: - workflow_call: - inputs: - db-image: - required: false - type: string +on: workflow_call + +env: + DB_IMAGE: ${{ vars.DB_IMAGE || 'quay.io/389ds/dirsrv' }} jobs: # docs/installation/ca/Installing_CA_Clone.md diff --git a/.github/workflows/ca-clone-shared-ds-test.yml b/.github/workflows/ca-clone-shared-ds-test.yml index 4e62e9b6f74..3116d63e044 100644 --- a/.github/workflows/ca-clone-shared-ds-test.yml +++ b/.github/workflows/ca-clone-shared-ds-test.yml @@ -1,11 +1,9 @@ name: CA clone with shared DS -on: - workflow_call: - inputs: - db-image: - required: false - type: string +on: workflow_call + +env: + DB_IMAGE: ${{ vars.DB_IMAGE || 'quay.io/389ds/dirsrv' }} jobs: test: @@ -33,7 +31,7 @@ jobs: run: | tests/bin/ds-container-create.sh ds env: - IMAGE: ${{ inputs.db-image }} + IMAGE: ${{ env.DB_IMAGE }} HOSTNAME: ds.example.com PASSWORD: Secret.123 diff --git a/.github/workflows/ca-clone-test.yml b/.github/workflows/ca-clone-test.yml index 777e656b3e5..f5ecdd8d0ca 100644 --- a/.github/workflows/ca-clone-test.yml +++ b/.github/workflows/ca-clone-test.yml @@ -1,11 +1,9 @@ name: CA clone -on: - workflow_call: - inputs: - db-image: - required: false - type: string +on: workflow_call + +env: + DB_IMAGE: ${{ vars.DB_IMAGE || 'quay.io/389ds/dirsrv' }} jobs: # docs/installation/ca/Installing_CA.md @@ -34,7 +32,7 @@ jobs: run: | tests/bin/ds-container-create.sh primaryds env: - IMAGE: ${{ inputs.db-image }} + IMAGE: ${{ env.DB_IMAGE }} HOSTNAME: primaryds.example.com PASSWORD: Secret.123 @@ -80,7 +78,7 @@ jobs: run: | tests/bin/ds-container-create.sh secondaryds env: - IMAGE: ${{ inputs.db-image }} + IMAGE: ${{ env.DB_IMAGE }} HOSTNAME: secondaryds.example.com PASSWORD: Secret.123 @@ -204,7 +202,7 @@ jobs: run: | tests/bin/ds-container-create.sh tertiaryds env: - IMAGE: ${{ inputs.db-image }} + IMAGE: ${{ env.DB_IMAGE }} HOSTNAME: tertiaryds.example.com PASSWORD: Secret.123 diff --git a/.github/workflows/ca-clone-tests.yml b/.github/workflows/ca-clone-tests.yml index 79f0b4ef14f..ea50b204f85 100644 --- a/.github/workflows/ca-clone-tests.yml +++ b/.github/workflows/ca-clone-tests.yml @@ -18,33 +18,23 @@ jobs: name: CA clone needs: [init, build] uses: ./.github/workflows/ca-clone-test.yml - with: - db-image: ${{ needs.init.outputs.db-image }} ca-clone-hsm-test: name: CA clone with HSM needs: [init, build] uses: ./.github/workflows/ca-clone-hsm-test.yml - with: - db-image: ${{ needs.init.outputs.db-image }} ca-clone-secure-ds-test: name: CA clone with secure DS needs: [init, build] uses: ./.github/workflows/ca-clone-secure-ds-test.yml - with: - db-image: ${{ needs.init.outputs.db-image }} ca-clone-shared-ds-test: name: CA clone with shared DS needs: [init, build] uses: ./.github/workflows/ca-clone-shared-ds-test.yml - with: - db-image: ${{ needs.init.outputs.db-image }} ca-clone-replicated-ds-test: name: CA clone with replicated DS needs: [init, build] uses: ./.github/workflows/ca-clone-replicated-ds-test.yml - with: - db-image: ${{ needs.init.outputs.db-image }} diff --git a/.github/workflows/ca-cmc-shared-token-test.yml b/.github/workflows/ca-cmc-shared-token-test.yml index 847292a4074..6e7475e0e1e 100644 --- a/.github/workflows/ca-cmc-shared-token-test.yml +++ b/.github/workflows/ca-cmc-shared-token-test.yml @@ -1,11 +1,9 @@ name: CA with CMC shared token -on: - workflow_call: - inputs: - db-image: - required: false - type: string +on: workflow_call + +env: + DB_IMAGE: ${{ vars.DB_IMAGE || 'quay.io/389ds/dirsrv' }} jobs: # https://github.com/dogtagpki/pki/wiki/Issuing-User-Certificate-with-CMC-Shared-Token @@ -34,7 +32,7 @@ jobs: run: | tests/bin/ds-container-create.sh ds env: - IMAGE: ${{ inputs.db-image }} + IMAGE: ${{ env.DB_IMAGE }} HOSTNAME: ds.example.com PASSWORD: Secret.123 diff --git a/.github/workflows/ca-container-test.yml b/.github/workflows/ca-container-test.yml index 4fd5e8ee96b..c3f28dc1ddf 100644 --- a/.github/workflows/ca-container-test.yml +++ b/.github/workflows/ca-container-test.yml @@ -1,11 +1,9 @@ name: CA container -on: - workflow_call: - inputs: - db-image: - required: false - type: string +on: workflow_call + +env: + DB_IMAGE: ${{ vars.DB_IMAGE || 'quay.io/389ds/dirsrv' }} jobs: # https://github.com/dogtagpki/pki/wiki/Deploying-CA-Container @@ -191,7 +189,7 @@ jobs: run: | tests/bin/ds-container-create.sh ds env: - IMAGE: ${{ inputs.db-image }} + IMAGE: ${{ env.DB_IMAGE }} HOSTNAME: ds.example.com PASSWORD: Secret.123 diff --git a/.github/workflows/ca-crl-test.yml b/.github/workflows/ca-crl-test.yml index 6a2e50a5b1c..507e180fd44 100644 --- a/.github/workflows/ca-crl-test.yml +++ b/.github/workflows/ca-crl-test.yml @@ -1,11 +1,9 @@ name: CA CRL database -on: - workflow_call: - inputs: - db-image: - required: false - type: string +on: workflow_call + +env: + DB_IMAGE: ${{ vars.DB_IMAGE || 'quay.io/389ds/dirsrv' }} jobs: # https://github.com/dogtagpki/pki/wiki/CA-CRL-Database @@ -39,7 +37,7 @@ jobs: run: | tests/bin/ds-container-create.sh ds env: - IMAGE: ${{ inputs.db-image }} + IMAGE: ${{ env.DB_IMAGE }} HOSTNAME: ds.example.com PASSWORD: Secret.123 diff --git a/.github/workflows/ca-ds-connection-test.yml b/.github/workflows/ca-ds-connection-test.yml index 39199214b14..b2cf6f245f5 100644 --- a/.github/workflows/ca-ds-connection-test.yml +++ b/.github/workflows/ca-ds-connection-test.yml @@ -1,11 +1,9 @@ name: CA connection with DS -on: - workflow_call: - inputs: - db-image: - required: false - type: string +on: workflow_call + +env: + DB_IMAGE: ${{ vars.DB_IMAGE || 'quay.io/389ds/dirsrv' }} jobs: # docs/installation/ca/Installing_CA.md @@ -34,7 +32,7 @@ jobs: run: | tests/bin/ds-container-create.sh ds env: - IMAGE: ${{ inputs.db-image }} + IMAGE: ${{ env.DB_IMAGE }} HOSTNAME: ds.example.com PASSWORD: Secret.123 diff --git a/.github/workflows/ca-ecc-test.yml b/.github/workflows/ca-ecc-test.yml index 096c2bbda6c..387a56cdf47 100644 --- a/.github/workflows/ca-ecc-test.yml +++ b/.github/workflows/ca-ecc-test.yml @@ -1,11 +1,9 @@ name: CA with ECC -on: - workflow_call: - inputs: - db-image: - required: false - type: string +on: workflow_call + +env: + DB_IMAGE: ${{ vars.DB_IMAGE || 'quay.io/389ds/dirsrv' }} jobs: # docs/installation/ca/Installing_CA_with_ECC.md @@ -34,7 +32,7 @@ jobs: run: | tests/bin/ds-container-create.sh ds env: - IMAGE: ${{ inputs.db-image }} + IMAGE: ${{ env.DB_IMAGE }} HOSTNAME: ds.example.com PASSWORD: Secret.123 diff --git a/.github/workflows/ca-existing-certs-test.yml b/.github/workflows/ca-existing-certs-test.yml index 59e5e0eb133..062e86817e3 100644 --- a/.github/workflows/ca-existing-certs-test.yml +++ b/.github/workflows/ca-existing-certs-test.yml @@ -1,11 +1,9 @@ name: CA with existing certs -on: - workflow_call: - inputs: - db-image: - required: false - type: string +on: workflow_call + +env: + DB_IMAGE: ${{ vars.DB_IMAGE || 'quay.io/389ds/dirsrv' }} jobs: # docs/installation/ca/Installing_CA_with_Existing_Keys_in_Internal_Token.md @@ -34,7 +32,7 @@ jobs: run: | tests/bin/ds-container-create.sh ds env: - IMAGE: ${{ inputs.db-image }} + IMAGE: ${{ env.DB_IMAGE }} HOSTNAME: ds.example.com PASSWORD: Secret.123 diff --git a/.github/workflows/ca-existing-ds-test.yml b/.github/workflows/ca-existing-ds-test.yml index e9fb994fe40..b53a1ecf099 100644 --- a/.github/workflows/ca-existing-ds-test.yml +++ b/.github/workflows/ca-existing-ds-test.yml @@ -1,11 +1,9 @@ name: CA with existing DS -on: - workflow_call: - inputs: - db-image: - required: false - type: string +on: workflow_call + +env: + DB_IMAGE: ${{ vars.DB_IMAGE || 'quay.io/389ds/dirsrv' }} jobs: test: @@ -33,7 +31,7 @@ jobs: run: | tests/bin/ds-container-create.sh ds env: - IMAGE: ${{ inputs.db-image }} + IMAGE: ${{ env.DB_IMAGE }} HOSTNAME: ds.example.com PASSWORD: Secret.123 diff --git a/.github/workflows/ca-existing-hsm-test.yml b/.github/workflows/ca-existing-hsm-test.yml index d2de24a81ab..ce1f187b628 100644 --- a/.github/workflows/ca-existing-hsm-test.yml +++ b/.github/workflows/ca-existing-hsm-test.yml @@ -1,11 +1,9 @@ name: CA with existing HSM -on: - workflow_call: - inputs: - db-image: - required: false - type: string +on: workflow_call + +env: + DB_IMAGE: ${{ vars.DB_IMAGE || 'quay.io/389ds/dirsrv' }} jobs: test: @@ -33,7 +31,7 @@ jobs: run: | tests/bin/ds-container-create.sh ds env: - IMAGE: ${{ inputs.db-image }} + IMAGE: ${{ env.DB_IMAGE }} HOSTNAME: ds.example.com PASSWORD: Secret.123 diff --git a/.github/workflows/ca-existing-nssdb-test.yml b/.github/workflows/ca-existing-nssdb-test.yml index 9e24f054ad1..dfe67722935 100644 --- a/.github/workflows/ca-existing-nssdb-test.yml +++ b/.github/workflows/ca-existing-nssdb-test.yml @@ -1,11 +1,9 @@ name: CA with existing NSS database -on: - workflow_call: - inputs: - db-image: - required: false - type: string +on: workflow_call + +env: + DB_IMAGE: ${{ vars.DB_IMAGE || 'quay.io/389ds/dirsrv' }} jobs: test: @@ -33,7 +31,7 @@ jobs: run: | tests/bin/ds-container-create.sh ds env: - IMAGE: ${{ inputs.db-image }} + IMAGE: ${{ env.DB_IMAGE }} HOSTNAME: ds.example.com PASSWORD: Secret.123 diff --git a/.github/workflows/ca-hsm-test.yml b/.github/workflows/ca-hsm-test.yml index 996cc5e4dd6..f02a93a32af 100644 --- a/.github/workflows/ca-hsm-test.yml +++ b/.github/workflows/ca-hsm-test.yml @@ -1,11 +1,9 @@ name: CA with HSM -on: - workflow_call: - inputs: - db-image: - required: false - type: string +on: workflow_call + +env: + DB_IMAGE: ${{ vars.DB_IMAGE || 'quay.io/389ds/dirsrv' }} jobs: # docs/installation/ca/Installing_CA_with_HSM.md @@ -34,7 +32,7 @@ jobs: run: | tests/bin/ds-container-create.sh ds env: - IMAGE: ${{ inputs.db-image }} + IMAGE: ${{ env.DB_IMAGE }} HOSTNAME: ds.example.com PASSWORD: Secret.123 diff --git a/.github/workflows/ca-non-default-user-test.yml b/.github/workflows/ca-non-default-user-test.yml index efe73ad84a6..b64656487f9 100644 --- a/.github/workflows/ca-non-default-user-test.yml +++ b/.github/workflows/ca-non-default-user-test.yml @@ -1,11 +1,9 @@ name: CA with non-default user -on: - workflow_call: - inputs: - db-image: - required: false - type: string +on: workflow_call + +env: + DB_IMAGE: ${{ vars.DB_IMAGE || 'quay.io/389ds/dirsrv' }} jobs: test: @@ -33,7 +31,7 @@ jobs: run: | tests/bin/ds-container-create.sh ds env: - IMAGE: ${{ inputs.db-image }} + IMAGE: ${{ env.DB_IMAGE }} HOSTNAME: ds.example.com PASSWORD: Secret.123 diff --git a/.github/workflows/ca-notification-request-test.yml b/.github/workflows/ca-notification-request-test.yml index 7e45c6f86af..e2ef8f37a6e 100644 --- a/.github/workflows/ca-notification-request-test.yml +++ b/.github/workflows/ca-notification-request-test.yml @@ -1,11 +1,9 @@ name: CA with request notification -on: - workflow_call: - inputs: - db-image: - required: false - type: string +on: workflow_call + +env: + DB_IMAGE: ${{ vars.DB_IMAGE || 'quay.io/389ds/dirsrv' }} jobs: test: @@ -33,7 +31,7 @@ jobs: run: | tests/bin/ds-container-create.sh ds env: - IMAGE: ${{ inputs.db-image }} + IMAGE: ${{ env.DB_IMAGE }} HOSTNAME: ds.example.com PASSWORD: Secret.123 diff --git a/.github/workflows/ca-nuxwdog-test.yml b/.github/workflows/ca-nuxwdog-test.yml index f28a7abafa0..bd469b27698 100644 --- a/.github/workflows/ca-nuxwdog-test.yml +++ b/.github/workflows/ca-nuxwdog-test.yml @@ -1,11 +1,9 @@ name: CA with Nuxwdog -on: - workflow_call: - inputs: - db-image: - required: false - type: string +on: workflow_call + +env: + DB_IMAGE: ${{ vars.DB_IMAGE || 'quay.io/389ds/dirsrv' }} jobs: test: @@ -33,7 +31,7 @@ jobs: run: | tests/bin/ds-container-create.sh ds env: - IMAGE: ${{ inputs.db-image }} + IMAGE: ${{ env.DB_IMAGE }} HOSTNAME: ds.example.com PASSWORD: Secret.123 diff --git a/.github/workflows/ca-profile-caDirUserCert-test.yml b/.github/workflows/ca-profile-caDirUserCert-test.yml index 9ee9c9cfe06..47065a25b17 100644 --- a/.github/workflows/ca-profile-caDirUserCert-test.yml +++ b/.github/workflows/ca-profile-caDirUserCert-test.yml @@ -1,12 +1,10 @@ name: CA with caDirUserCert profile # https://github.com/dogtagpki/pki/wiki/Certificate-Enrollment-with-Directory-Authenticated-Profile -on: - workflow_call: - inputs: - db-image: - required: false - type: string +on: workflow_call + +env: + DB_IMAGE: ${{ vars.DB_IMAGE || 'quay.io/389ds/dirsrv' }} jobs: test: @@ -39,7 +37,7 @@ jobs: run: | tests/bin/ds-container-create.sh ds env: - IMAGE: ${{ inputs.db-image }} + IMAGE: ${{ env.DB_IMAGE }} HOSTNAME: ds.example.com PASSWORD: Secret.123 diff --git a/.github/workflows/ca-profile-caServerCert-test.yml b/.github/workflows/ca-profile-caServerCert-test.yml index 8693928ca2c..57a88c6e77b 100644 --- a/.github/workflows/ca-profile-caServerCert-test.yml +++ b/.github/workflows/ca-profile-caServerCert-test.yml @@ -1,11 +1,9 @@ name: CA with caServerCert profile -on: - workflow_call: - inputs: - db-image: - required: false - type: string +on: workflow_call + +env: + DB_IMAGE: ${{ vars.DB_IMAGE || 'quay.io/389ds/dirsrv' }} jobs: test: @@ -33,7 +31,7 @@ jobs: run: | tests/bin/ds-container-create.sh ds env: - IMAGE: ${{ inputs.db-image }} + IMAGE: ${{ env.DB_IMAGE }} HOSTNAME: ds.example.com PASSWORD: Secret.123 diff --git a/.github/workflows/ca-pruning-test.yml b/.github/workflows/ca-pruning-test.yml index c48633fa04a..46e2e040618 100644 --- a/.github/workflows/ca-pruning-test.yml +++ b/.github/workflows/ca-pruning-test.yml @@ -1,11 +1,9 @@ name: CA database pruning -on: - workflow_call: - inputs: - db-image: - required: false - type: string +on: workflow_call + +env: + DB_IMAGE: ${{ vars.DB_IMAGE || 'quay.io/389ds/dirsrv' }} jobs: test: @@ -33,7 +31,7 @@ jobs: run: | tests/bin/ds-container-create.sh ds env: - IMAGE: ${{ inputs.db-image }} + IMAGE: ${{ env.DB_IMAGE }} HOSTNAME: ds.example.com PASSWORD: Secret.123 diff --git a/.github/workflows/ca-publishing-ca-cert-test.yml b/.github/workflows/ca-publishing-ca-cert-test.yml index 32f90d8da3e..05b66c91b92 100644 --- a/.github/workflows/ca-publishing-ca-cert-test.yml +++ b/.github/workflows/ca-publishing-ca-cert-test.yml @@ -1,11 +1,9 @@ name: CA with CA cert publishing -on: - workflow_call: - inputs: - db-image: - required: false - type: string +on: workflow_call + +env: + DB_IMAGE: ${{ vars.DB_IMAGE || 'quay.io/389ds/dirsrv' }} jobs: # https://github.com/dogtagpki/pki/wiki/Publishing-CA-Certificate-to-LDAP-Server @@ -34,7 +32,7 @@ jobs: run: | tests/bin/ds-container-create.sh ds env: - IMAGE: ${{ inputs.db-image }} + IMAGE: ${{ env.DB_IMAGE }} HOSTNAME: ds.example.com PASSWORD: Secret.123 diff --git a/.github/workflows/ca-publishing-crl-file-test.yml b/.github/workflows/ca-publishing-crl-file-test.yml index 0a77b44cead..b43e3fa2603 100644 --- a/.github/workflows/ca-publishing-crl-file-test.yml +++ b/.github/workflows/ca-publishing-crl-file-test.yml @@ -1,11 +1,9 @@ name: CA with file-based CRL publishing -on: - workflow_call: - inputs: - db-image: - required: false - type: string +on: workflow_call + +env: + DB_IMAGE: ${{ vars.DB_IMAGE || 'quay.io/389ds/dirsrv' }} jobs: # https://github.com/dogtagpki/pki/wiki/Publishing-CRL-to-File-System @@ -39,7 +37,7 @@ jobs: run: | tests/bin/ds-container-create.sh ds env: - IMAGE: ${{ inputs.db-image }} + IMAGE: ${{ env.DB_IMAGE }} HOSTNAME: ds.example.com PASSWORD: Secret.123 diff --git a/.github/workflows/ca-publishing-crl-ldap-test.yml b/.github/workflows/ca-publishing-crl-ldap-test.yml index 703bb60cd98..faa6c1162c8 100644 --- a/.github/workflows/ca-publishing-crl-ldap-test.yml +++ b/.github/workflows/ca-publishing-crl-ldap-test.yml @@ -1,11 +1,9 @@ name: CA with LDAP-based CRL publishing -on: - workflow_call: - inputs: - db-image: - required: false - type: string +on: workflow_call + +env: + DB_IMAGE: ${{ vars.DB_IMAGE || 'quay.io/389ds/dirsrv' }} jobs: # https://github.com/dogtagpki/pki/wiki/Publishing-CRL-to-LDAP-Server @@ -39,7 +37,7 @@ jobs: run: | tests/bin/ds-container-create.sh ds env: - IMAGE: ${{ inputs.db-image }} + IMAGE: ${{ env.DB_IMAGE }} HOSTNAME: ds.example.com PASSWORD: Secret.123 diff --git a/.github/workflows/ca-publishing-user-cert-test.yml b/.github/workflows/ca-publishing-user-cert-test.yml index 34a73396381..7b44a0216cd 100644 --- a/.github/workflows/ca-publishing-user-cert-test.yml +++ b/.github/workflows/ca-publishing-user-cert-test.yml @@ -1,11 +1,9 @@ name: CA with user cert publishing -on: - workflow_call: - inputs: - db-image: - required: false - type: string +on: workflow_call + +env: + DB_IMAGE: ${{ vars.DB_IMAGE || 'quay.io/389ds/dirsrv' }} jobs: test: @@ -33,7 +31,7 @@ jobs: run: | tests/bin/ds-container-create.sh ds env: - IMAGE: ${{ inputs.db-image }} + IMAGE: ${{ env.DB_IMAGE }} HOSTNAME: ds.example.com PASSWORD: Secret.123 diff --git a/.github/workflows/ca-rsa-pss-test.yml b/.github/workflows/ca-rsa-pss-test.yml index 4f9c0541863..dbb28531466 100644 --- a/.github/workflows/ca-rsa-pss-test.yml +++ b/.github/workflows/ca-rsa-pss-test.yml @@ -1,11 +1,9 @@ name: CA with RSA/PSS -on: - workflow_call: - inputs: - db-image: - required: false - type: string +on: workflow_call + +env: + DB_IMAGE: ${{ vars.DB_IMAGE || 'quay.io/389ds/dirsrv' }} jobs: # docs/installation/ca/Installing-CA-with-RSA-PSS.adoc @@ -34,7 +32,7 @@ jobs: run: | tests/bin/ds-container-create.sh ds env: - IMAGE: ${{ inputs.db-image }} + IMAGE: ${{ env.DB_IMAGE }} HOSTNAME: ds.example.com PASSWORD: Secret.123 diff --git a/.github/workflows/ca-rsa-test.yml b/.github/workflows/ca-rsa-test.yml index 82af7367509..2826ac42839 100644 --- a/.github/workflows/ca-rsa-test.yml +++ b/.github/workflows/ca-rsa-test.yml @@ -1,11 +1,9 @@ name: CA with RSA -on: - workflow_call: - inputs: - db-image: - required: false - type: string +on: workflow_call + +env: + DB_IMAGE: ${{ vars.DB_IMAGE || 'quay.io/389ds/dirsrv' }} jobs: test: @@ -33,7 +31,7 @@ jobs: run: | tests/bin/ds-container-create.sh ds env: - IMAGE: ${{ inputs.db-image }} + IMAGE: ${{ env.DB_IMAGE }} HOSTNAME: ds.example.com PASSWORD: Secret.123 diff --git a/.github/workflows/ca-rsnv1-test.yml b/.github/workflows/ca-rsnv1-test.yml index a9024d9c1b6..94f62594808 100644 --- a/.github/workflows/ca-rsnv1-test.yml +++ b/.github/workflows/ca-rsnv1-test.yml @@ -1,11 +1,9 @@ name: CA with RSNv1 -on: - workflow_call: - inputs: - db-image: - required: false - type: string +on: workflow_call + +env: + DB_IMAGE: ${{ vars.DB_IMAGE || 'quay.io/389ds/dirsrv' }} jobs: # https://github.com/dogtagpki/pki/wiki/Installing-CA-with-Random-Serial-Numbers-v1 @@ -34,7 +32,7 @@ jobs: run: | tests/bin/ds-container-create.sh ds env: - IMAGE: ${{ inputs.db-image }} + IMAGE: ${{ env.DB_IMAGE }} HOSTNAME: ds.example.com PASSWORD: Secret.123 diff --git a/.github/workflows/ca-secure-ds-test.yml b/.github/workflows/ca-secure-ds-test.yml index e3ece79c05f..809c0df6e77 100644 --- a/.github/workflows/ca-secure-ds-test.yml +++ b/.github/workflows/ca-secure-ds-test.yml @@ -1,11 +1,9 @@ name: CA with secure DS -on: - workflow_call: - inputs: - db-image: - required: false - type: string +on: workflow_call + +env: + DB_IMAGE: ${{ vars.DB_IMAGE || 'quay.io/389ds/dirsrv' }} jobs: # docs/installation/ca/Installing_CA_with_Secure_Database_Connection.md diff --git a/.github/workflows/ca-sequential-test.yml b/.github/workflows/ca-sequential-test.yml index 5bfe9da1bb8..8cb321fb7a6 100644 --- a/.github/workflows/ca-sequential-test.yml +++ b/.github/workflows/ca-sequential-test.yml @@ -1,11 +1,9 @@ name: CA with Sequential Serial Numbers -on: - workflow_call: - inputs: - db-image: - required: false - type: string +on: workflow_call + +env: + DB_IMAGE: ${{ vars.DB_IMAGE || 'quay.io/389ds/dirsrv' }} jobs: test: @@ -33,7 +31,7 @@ jobs: run: | tests/bin/ds-container-create.sh ds env: - IMAGE: ${{ inputs.db-image }} + IMAGE: ${{ env.DB_IMAGE }} HOSTNAME: ds.example.com PASSWORD: Secret.123 diff --git a/.github/workflows/ca-tests.yml b/.github/workflows/ca-tests.yml index ca9c3c5c30c..6871f6396eb 100644 --- a/.github/workflows/ca-tests.yml +++ b/.github/workflows/ca-tests.yml @@ -18,124 +18,88 @@ jobs: name: Basic CA needs: [init, build] uses: ./.github/workflows/ca-basic-test.yml - with: - db-image: ${{ needs.init.outputs.db-image }} ca-ecc-test: name: CA with ECC needs: [init, build] uses: ./.github/workflows/ca-ecc-test.yml - with: - db-image: ${{ needs.init.outputs.db-image }} ca-rsa-test: name: CA with RSA needs: [init, build] uses: ./.github/workflows/ca-rsa-test.yml - with: - db-image: ${{ needs.init.outputs.db-image }} ca-rsa-pss-test: name: CA with RSA/PSS needs: [init, build] uses: ./.github/workflows/ca-rsa-pss-test.yml - with: - db-image: ${{ needs.init.outputs.db-image }} ca-existing-certs-test: name: CA with existing certs needs: [init, build] uses: ./.github/workflows/ca-existing-certs-test.yml - with: - db-image: ${{ needs.init.outputs.db-image }} ca-existing-nssdb-test: name: CA with existing NSS database needs: [init, build] uses: ./.github/workflows/ca-existing-nssdb-test.yml - with: - db-image: ${{ needs.init.outputs.db-image }} ca-existing-hsm-test: name: CA with existing HSM needs: [init, build] uses: ./.github/workflows/ca-existing-hsm-test.yml - with: - db-image: ${{ needs.init.outputs.db-image }} ca-existing-ds-test: name: CA with existing DS needs: [init, build] uses: ./.github/workflows/ca-existing-ds-test.yml - with: - db-image: ${{ needs.init.outputs.db-image }} ca-cmc-shared-token-test: name: CA with CMC shared token needs: [init, build] uses: ./.github/workflows/ca-cmc-shared-token-test.yml - with: - db-image: ${{ needs.init.outputs.db-image }} ca-hsm-test: name: CA with HSM needs: [init, build] uses: ./.github/workflows/ca-hsm-test.yml - with: - db-image: ${{ needs.init.outputs.db-image }} ca-nuxwdog-test: name: CA with Nuxwdog needs: [init, build] uses: ./.github/workflows/ca-nuxwdog-test.yml - with: - db-image: ${{ needs.init.outputs.db-image }} ca-ds-connection-test: name: CA connection with DS needs: [init, build] uses: ./.github/workflows/ca-ds-connection-test.yml - with: - db-image: ${{ needs.init.outputs.db-image }} ca-rsnv1-test: name: CA with RSNv1 needs: [init, build] uses: ./.github/workflows/ca-rsnv1-test.yml - with: - db-image: ${{ needs.init.outputs.db-image }} ca-sequential-test: name: CA with Sequential Serial Numbers needs: [init, build] uses: ./.github/workflows/ca-sequential-test.yml - with: - db-image: ${{ needs.init.outputs.db-image }} ca-pruning-test: name: CA database pruning needs: [init, build] uses: ./.github/workflows/ca-pruning-test.yml - with: - db-image: ${{ needs.init.outputs.db-image }} ca-admin-user-test: name: CA admin user needs: [init, build] uses: ./.github/workflows/ca-admin-user-test.yml - with: - db-image: ${{ needs.init.outputs.db-image }} ca-non-default-user-test: name: CA with non-default user needs: [init, build] uses: ./.github/workflows/ca-non-default-user-test.yml - with: - db-image: ${{ needs.init.outputs.db-image }} ca-container-test: name: CA container needs: [init, build] uses: ./.github/workflows/ca-container-test.yml - with: - db-image: ${{ needs.init.outputs.db-image }} diff --git a/.github/workflows/ca-tests2.yml b/.github/workflows/ca-tests2.yml index ed1626d1b98..3df41b0aac7 100644 --- a/.github/workflows/ca-tests2.yml +++ b/.github/workflows/ca-tests2.yml @@ -18,68 +18,48 @@ jobs: name: CA with caDirUserCert profile needs: [init, build] uses: ./.github/workflows/ca-profile-caDirUserCert-test.yml - with: - db-image: ${{ needs.init.outputs.db-image }} ca-profile-caServerCert-test: name: CA with caServerCert profile needs: [init, build] uses: ./.github/workflows/ca-profile-caServerCert-test.yml - with: - db-image: ${{ needs.init.outputs.db-image }} ca-secure-ds-test: name: CA with secure DS needs: [init, build] uses: ./.github/workflows/ca-secure-ds-test.yml - with: - db-image: ${{ needs.init.outputs.db-image }} ca-crl-test: name: CA CRL database needs: [init, build] uses: ./.github/workflows/ca-crl-test.yml - with: - db-image: ${{ needs.init.outputs.db-image }} ca-publishing-ca-cert-test: name: CA with CA cert publishing needs: [init, build] uses: ./.github/workflows/ca-publishing-ca-cert-test.yml - with: - db-image: ${{ needs.init.outputs.db-image }} ca-publishing-user-cert-test: name: CA with user cert publishing needs: [init, build] uses: ./.github/workflows/ca-publishing-user-cert-test.yml - with: - db-image: ${{ needs.init.outputs.db-image }} ca-publishing-crl-file-test: name: CA with file-based CRL publishing needs: [init, build] uses: ./.github/workflows/ca-publishing-crl-file-test.yml - with: - db-image: ${{ needs.init.outputs.db-image }} ca-publishing-crl-ldap-test: name: CA with LDAP-based CRL publishing needs: [init, build] uses: ./.github/workflows/ca-publishing-crl-ldap-test.yml - with: - db-image: ${{ needs.init.outputs.db-image }} ca-notification-request-test: name: CA with request notification needs: [init, build] uses: ./.github/workflows/ca-notification-request-test.yml - with: - db-image: ${{ needs.init.outputs.db-image }} scep-test: name: SCEP responder needs: [init, build] uses: ./.github/workflows/scep-test.yml - with: - db-image: ${{ needs.init.outputs.db-image }} diff --git a/.github/workflows/ipa-acme-test.yml b/.github/workflows/ipa-acme-test.yml index 39bea39c44d..045534c3147 100644 --- a/.github/workflows/ipa-acme-test.yml +++ b/.github/workflows/ipa-acme-test.yml @@ -1,11 +1,9 @@ name: IPA ACME -on: - workflow_call: - inputs: - db-image: - required: false - type: string +on: workflow_call + +env: + DB_IMAGE: ${{ vars.DB_IMAGE || 'quay.io/389ds/dirsrv' }} jobs: test: diff --git a/.github/workflows/ipa-basic-test.yml b/.github/workflows/ipa-basic-test.yml index 5bb13c165ee..db4863fd3cc 100644 --- a/.github/workflows/ipa-basic-test.yml +++ b/.github/workflows/ipa-basic-test.yml @@ -1,11 +1,9 @@ name: Basic IPA -on: - workflow_call: - inputs: - db-image: - required: false - type: string +on: workflow_call + +env: + DB_IMAGE: ${{ vars.DB_IMAGE || 'quay.io/389ds/dirsrv' }} jobs: test: diff --git a/.github/workflows/ipa-clone-test.yml b/.github/workflows/ipa-clone-test.yml index 113868c3ecb..d0cd547a890 100644 --- a/.github/workflows/ipa-clone-test.yml +++ b/.github/workflows/ipa-clone-test.yml @@ -1,11 +1,9 @@ name: IPA clone -on: - workflow_call: - inputs: - db-image: - required: false - type: string +on: workflow_call + +env: + DB_IMAGE: ${{ vars.DB_IMAGE || 'quay.io/389ds/dirsrv' }} jobs: test: diff --git a/.github/workflows/ipa-subca-test.yml b/.github/workflows/ipa-subca-test.yml index efb6dfb60b6..5163fcb1ec7 100644 --- a/.github/workflows/ipa-subca-test.yml +++ b/.github/workflows/ipa-subca-test.yml @@ -1,11 +1,9 @@ name: IPA with Sub-CA -on: - workflow_call: - inputs: - db-image: - required: false - type: string +on: workflow_call + +env: + DB_IMAGE: ${{ vars.DB_IMAGE || 'quay.io/389ds/dirsrv' }} jobs: test: diff --git a/.github/workflows/ipa-tests.yml b/.github/workflows/ipa-tests.yml index 72d2d960d77..357878a2abc 100644 --- a/.github/workflows/ipa-tests.yml +++ b/.github/workflows/ipa-tests.yml @@ -82,26 +82,18 @@ jobs: name: Basic IPA needs: [init, build] uses: ./.github/workflows/ipa-basic-test.yml - with: - db-image: ${{ needs.init.outputs.db-image }} ipa-acme-test: name: IPA ACME needs: [init, build] uses: ./.github/workflows/ipa-acme-test.yml - with: - db-image: ${{ needs.init.outputs.db-image }} ipa-subca-test: name: IPA with Sub-CA needs: [init, build] uses: ./.github/workflows/ipa-subca-test.yml - with: - db-image: ${{ needs.init.outputs.db-image }} ipa-clone-test: name: IPA clone needs: [init, build] uses: ./.github/workflows/ipa-clone-test.yml - with: - db-image: ${{ needs.init.outputs.db-image }} diff --git a/.github/workflows/kra-basic-test.yml b/.github/workflows/kra-basic-test.yml index a973754b5f3..18564baff5d 100644 --- a/.github/workflows/kra-basic-test.yml +++ b/.github/workflows/kra-basic-test.yml @@ -1,11 +1,9 @@ name: Basic KRA -on: - workflow_call: - inputs: - db-image: - required: false - type: string +on: workflow_call + +env: + DB_IMAGE: ${{ vars.DB_IMAGE || 'quay.io/389ds/dirsrv' }} jobs: # docs/installation/kra/Installing_KRA.md @@ -34,7 +32,7 @@ jobs: run: | tests/bin/ds-container-create.sh ds env: - IMAGE: ${{ inputs.db-image }} + IMAGE: ${{ env.DB_IMAGE }} HOSTNAME: ds.example.com PASSWORD: Secret.123 diff --git a/.github/workflows/kra-clone-hsm-test.yml b/.github/workflows/kra-clone-hsm-test.yml index d63bf979b66..47792318295 100644 --- a/.github/workflows/kra-clone-hsm-test.yml +++ b/.github/workflows/kra-clone-hsm-test.yml @@ -1,11 +1,9 @@ name: KRA clone with HSM -on: - workflow_call: - inputs: - db-image: - required: false - type: string +on: workflow_call + +env: + DB_IMAGE: ${{ vars.DB_IMAGE || 'quay.io/389ds/dirsrv' }} jobs: # docs/installation/kra/Installing_KRA_Clone_with_HSM.md @@ -34,7 +32,7 @@ jobs: run: | tests/bin/ds-container-create.sh primaryds env: - IMAGE: ${{ inputs.db-image }} + IMAGE: ${{ env.DB_IMAGE }} HOSTNAME: primaryds.example.com PASSWORD: Secret.123 @@ -141,7 +139,7 @@ jobs: run: | tests/bin/ds-container-create.sh secondaryds env: - IMAGE: ${{ inputs.db-image }} + IMAGE: ${{ env.DB_IMAGE }} HOSTNAME: secondaryds.example.com PASSWORD: Secret.123 @@ -319,7 +317,7 @@ jobs: run: | tests/bin/ds-container-create.sh tertiaryds env: - IMAGE: ${{ inputs.db-image }} + IMAGE: ${{ env.DB_IMAGE }} HOSTNAME: tertiaryds.example.com PASSWORD: Secret.123 diff --git a/.github/workflows/kra-clone-shared-ds-test.yml b/.github/workflows/kra-clone-shared-ds-test.yml index 5f41a431c8e..6bb81018573 100644 --- a/.github/workflows/kra-clone-shared-ds-test.yml +++ b/.github/workflows/kra-clone-shared-ds-test.yml @@ -1,11 +1,9 @@ name: KRA clone with shared DS -on: - workflow_call: - inputs: - db-image: - required: false - type: string +on: workflow_call + +env: + DB_IMAGE: ${{ vars.DB_IMAGE || 'quay.io/389ds/dirsrv' }} jobs: test: @@ -33,7 +31,7 @@ jobs: run: | tests/bin/ds-container-create.sh ds env: - IMAGE: ${{ inputs.db-image }} + IMAGE: ${{ env.DB_IMAGE }} HOSTNAME: ds.example.com PASSWORD: Secret.123 diff --git a/.github/workflows/kra-clone-test.yml b/.github/workflows/kra-clone-test.yml index f78aeb160e6..d025e6ba867 100644 --- a/.github/workflows/kra-clone-test.yml +++ b/.github/workflows/kra-clone-test.yml @@ -1,11 +1,9 @@ name: KRA clone -on: - workflow_call: - inputs: - db-image: - required: false - type: string +on: workflow_call + +env: + DB_IMAGE: ${{ vars.DB_IMAGE || 'quay.io/389ds/dirsrv' }} jobs: # docs/installation/kra/Installing_KRA_Clone.md @@ -34,7 +32,7 @@ jobs: run: | tests/bin/ds-container-create.sh primaryds env: - IMAGE: ${{ inputs.db-image }} + IMAGE: ${{ env.DB_IMAGE }} HOSTNAME: primaryds.example.com PASSWORD: Secret.123 @@ -78,7 +76,7 @@ jobs: run: | tests/bin/ds-container-create.sh secondaryds env: - IMAGE: ${{ inputs.db-image }} + IMAGE: ${{ env.DB_IMAGE }} HOSTNAME: secondaryds.example.com PASSWORD: Secret.123 @@ -140,7 +138,7 @@ jobs: run: | tests/bin/ds-container-create.sh tertiaryds env: - IMAGE: ${{ inputs.db-image }} + IMAGE: ${{ env.DB_IMAGE }} HOSTNAME: tertiaryds.example.com PASSWORD: Secret.123 diff --git a/.github/workflows/kra-cmc-test.yml b/.github/workflows/kra-cmc-test.yml index 3b05d103ec3..fe177258ef7 100644 --- a/.github/workflows/kra-cmc-test.yml +++ b/.github/workflows/kra-cmc-test.yml @@ -1,11 +1,9 @@ name: KRA with CMC -on: - workflow_call: - inputs: - db-image: - required: false - type: string +on: workflow_call + +env: + DB_IMAGE: ${{ vars.DB_IMAGE || 'quay.io/389ds/dirsrv' }} jobs: # docs/installation/kra/Installing_KRA_with_External_Certificates.md @@ -34,7 +32,7 @@ jobs: run: | tests/bin/ds-container-create.sh cads env: - IMAGE: ${{ inputs.db-image }} + IMAGE: ${{ env.DB_IMAGE }} HOSTNAME: cads.example.com PASSWORD: Secret.123 @@ -74,7 +72,7 @@ jobs: run: | tests/bin/ds-container-create.sh krads env: - IMAGE: ${{ inputs.db-image }} + IMAGE: ${{ env.DB_IMAGE }} HOSTNAME: krads.example.com PASSWORD: Secret.123 diff --git a/.github/workflows/kra-external-certs-test.yml b/.github/workflows/kra-external-certs-test.yml index dcc31c32cc1..49af993ec60 100644 --- a/.github/workflows/kra-external-certs-test.yml +++ b/.github/workflows/kra-external-certs-test.yml @@ -1,11 +1,9 @@ name: KRA with external certs -on: - workflow_call: - inputs: - db-image: - required: false - type: string +on: workflow_call + +env: + DB_IMAGE: ${{ vars.DB_IMAGE || 'quay.io/389ds/dirsrv' }} jobs: # docs/installation/kra/Installing_KRA_with_External_Certificates.md @@ -34,7 +32,7 @@ jobs: run: | tests/bin/ds-container-create.sh cads env: - IMAGE: ${{ inputs.db-image }} + IMAGE: ${{ env.DB_IMAGE }} HOSTNAME: cads.example.com PASSWORD: Secret.123 @@ -74,7 +72,7 @@ jobs: run: | tests/bin/ds-container-create.sh krads env: - IMAGE: ${{ inputs.db-image }} + IMAGE: ${{ env.DB_IMAGE }} HOSTNAME: krads.example.com PASSWORD: Secret.123 diff --git a/.github/workflows/kra-hsm-test.yml b/.github/workflows/kra-hsm-test.yml index 05de4f73b79..a8c41d23808 100644 --- a/.github/workflows/kra-hsm-test.yml +++ b/.github/workflows/kra-hsm-test.yml @@ -1,11 +1,9 @@ name: KRA with HSM -on: - workflow_call: - inputs: - db-image: - required: false - type: string +on: workflow_call + +env: + DB_IMAGE: ${{ vars.DB_IMAGE || 'quay.io/389ds/dirsrv' }} jobs: # docs/installation/kra/Installing_KRA_with_HSM.md @@ -34,7 +32,7 @@ jobs: run: | tests/bin/ds-container-create.sh ds env: - IMAGE: ${{ inputs.db-image }} + IMAGE: ${{ env.DB_IMAGE }} HOSTNAME: ds.example.com PASSWORD: Secret.123 diff --git a/.github/workflows/kra-oaep-test.yml b/.github/workflows/kra-oaep-test.yml index cddd6324144..93823438721 100644 --- a/.github/workflows/kra-oaep-test.yml +++ b/.github/workflows/kra-oaep-test.yml @@ -1,11 +1,9 @@ name: Basic KRA with RSA OAEP padding -on: - workflow_call: - inputs: - db-image: - required: false - type: string +on: workflow_call + +env: + DB_IMAGE: ${{ vars.DB_IMAGE || 'quay.io/389ds/dirsrv' }} jobs: # docs/installation/kra/Installing_KRA.md @@ -34,7 +32,7 @@ jobs: run: | tests/bin/ds-container-create.sh ds env: - IMAGE: ${{ inputs.db-image }} + IMAGE: ${{ env.DB_IMAGE }} HOSTNAME: ds.example.com PASSWORD: Secret.123 diff --git a/.github/workflows/kra-separate-test.yml b/.github/workflows/kra-separate-test.yml index 3acdd5d4aaa..e6dcc365671 100644 --- a/.github/workflows/kra-separate-test.yml +++ b/.github/workflows/kra-separate-test.yml @@ -1,11 +1,9 @@ name: KRA on separate instance -on: - workflow_call: - inputs: - db-image: - required: false - type: string +on: workflow_call + +env: + DB_IMAGE: ${{ vars.DB_IMAGE || 'quay.io/389ds/dirsrv' }} jobs: # docs/installation/kra/Installing_KRA_on_Separate_Instance.md @@ -34,7 +32,7 @@ jobs: run: | tests/bin/ds-container-create.sh cads env: - IMAGE: ${{ inputs.db-image }} + IMAGE: ${{ env.DB_IMAGE }} HOSTNAME: cads.example.com PASSWORD: Secret.123 @@ -69,7 +67,7 @@ jobs: run: | tests/bin/ds-container-create.sh krads env: - IMAGE: ${{ inputs.db-image }} + IMAGE: ${{ env.DB_IMAGE }} HOSTNAME: krads.example.com PASSWORD: Secret.123 diff --git a/.github/workflows/kra-sequential-test.yml b/.github/workflows/kra-sequential-test.yml index 2ffdcca827c..fdb9503d490 100644 --- a/.github/workflows/kra-sequential-test.yml +++ b/.github/workflows/kra-sequential-test.yml @@ -1,11 +1,9 @@ name: KRA with sequential serial numbers -on: - workflow_call: - inputs: - db-image: - required: false - type: string +on: workflow_call + +env: + DB_IMAGE: ${{ vars.DB_IMAGE || 'quay.io/389ds/dirsrv' }} jobs: test: @@ -33,7 +31,7 @@ jobs: run: | tests/bin/ds-container-create.sh ds env: - IMAGE: ${{ inputs.db-image }} + IMAGE: ${{ env.DB_IMAGE }} HOSTNAME: ds.example.com PASSWORD: Secret.123 diff --git a/.github/workflows/kra-standalone-test.yml b/.github/workflows/kra-standalone-test.yml index 95a90d9eb85..a55843a9af7 100644 --- a/.github/workflows/kra-standalone-test.yml +++ b/.github/workflows/kra-standalone-test.yml @@ -1,11 +1,9 @@ name: Standalone KRA -on: - workflow_call: - inputs: - db-image: - required: false - type: string +on: workflow_call + +env: + DB_IMAGE: ${{ vars.DB_IMAGE || 'quay.io/389ds/dirsrv' }} jobs: test: @@ -33,7 +31,7 @@ jobs: run: | tests/bin/ds-container-create.sh ds env: - IMAGE: ${{ inputs.db-image }} + IMAGE: ${{ env.DB_IMAGE }} HOSTNAME: ds.example.com PASSWORD: Secret.123 diff --git a/.github/workflows/kra-tests.yml b/.github/workflows/kra-tests.yml index d9682dd3cd2..3a6c5fb7213 100644 --- a/.github/workflows/kra-tests.yml +++ b/.github/workflows/kra-tests.yml @@ -18,75 +18,53 @@ jobs: name: Basic KRA needs: [init, build] uses: ./.github/workflows/kra-basic-test.yml - with: - db-image: ${{ needs.init.outputs.db-image }} kra-oaep-test: name: KRA with RSA OAEP padding needs: [init, build] uses: ./.github/workflows/kra-oaep-test.yml - with: - db-image: ${{ needs.init.outputs.db-image }} kra-separate-test: name: KRA on separate instance needs: [init, build] uses: ./.github/workflows/kra-separate-test.yml - with: - db-image: ${{ needs.init.outputs.db-image }} kra-external-certs-test: name: KRA with external certs needs: [init, build] uses: ./.github/workflows/kra-external-certs-test.yml - with: - db-image: ${{ needs.init.outputs.db-image }} kra-cmc-test: name: KRA with CMC needs: [init, build] uses: ./.github/workflows/kra-cmc-test.yml - with: - db-image: ${{ needs.init.outputs.db-image }} kra-clone-test: name: KRA clone needs: [init, build] uses: ./.github/workflows/kra-clone-test.yml - with: - db-image: ${{ needs.init.outputs.db-image }} kra-clone-hsm-test: name: KRA clone with HSM needs: [init, build] uses: ./.github/workflows/kra-clone-hsm-test.yml - with: - db-image: ${{ needs.init.outputs.db-image }} kra-clone-shared-ds-test: name: KRA clone with shared DS needs: [init, build] uses: ./.github/workflows/kra-clone-shared-ds-test.yml - with: - db-image: ${{ needs.init.outputs.db-image }} kra-standalone-test: name: Standalone KRA needs: [init, build] uses: ./.github/workflows/kra-standalone-test.yml - with: - db-image: ${{ needs.init.outputs.db-image }} kra-sequential-test: name: KRA with sequential serial numbers needs: [init, build] uses: ./.github/workflows/kra-sequential-test.yml - with: - db-image: ${{ needs.init.outputs.db-image }} kra-hsm-test: name: KRA with HSM needs: [init, build] uses: ./.github/workflows/kra-hsm-test.yml - with: - db-image: ${{ needs.init.outputs.db-image }} diff --git a/.github/workflows/ocsp-basic-test.yml b/.github/workflows/ocsp-basic-test.yml index c7b4ea6cb4d..85d37038b75 100644 --- a/.github/workflows/ocsp-basic-test.yml +++ b/.github/workflows/ocsp-basic-test.yml @@ -1,11 +1,9 @@ name: Basic OCSP -on: - workflow_call: - inputs: - db-image: - required: false - type: string +on: workflow_call + +env: + DB_IMAGE: ${{ vars.DB_IMAGE || 'quay.io/389ds/dirsrv' }} jobs: # docs/installation/ocsp/Installing_OCSP.md @@ -34,7 +32,7 @@ jobs: run: | tests/bin/ds-container-create.sh ds env: - IMAGE: ${{ inputs.db-image }} + IMAGE: ${{ env.DB_IMAGE }} HOSTNAME: ds.example.com PASSWORD: Secret.123 diff --git a/.github/workflows/ocsp-clone-test.yml b/.github/workflows/ocsp-clone-test.yml index 965b360898c..4c918d30a1b 100644 --- a/.github/workflows/ocsp-clone-test.yml +++ b/.github/workflows/ocsp-clone-test.yml @@ -1,11 +1,9 @@ name: OCSP clone -on: - workflow_call: - inputs: - db-image: - required: false - type: string +on: workflow_call + +env: + DB_IMAGE: ${{ vars.DB_IMAGE || 'quay.io/389ds/dirsrv' }} jobs: # docs/installation/ocsp/Installing_OCSP_Clone.md @@ -34,7 +32,7 @@ jobs: run: | tests/bin/ds-container-create.sh primaryds env: - IMAGE: ${{ inputs.db-image }} + IMAGE: ${{ env.DB_IMAGE }} HOSTNAME: primaryds.example.com PASSWORD: Secret.123 @@ -76,7 +74,7 @@ jobs: run: | tests/bin/ds-container-create.sh secondaryds env: - IMAGE: ${{ inputs.db-image }} + IMAGE: ${{ env.DB_IMAGE }} HOSTNAME: secondaryds.example.com PASSWORD: Secret.123 @@ -136,7 +134,7 @@ jobs: run: | tests/bin/ds-container-create.sh tertiaryds env: - IMAGE: ${{ inputs.db-image }} + IMAGE: ${{ env.DB_IMAGE }} HOSTNAME: tertiaryds.example.com PASSWORD: Secret.123 diff --git a/.github/workflows/ocsp-cmc-test.yml b/.github/workflows/ocsp-cmc-test.yml index edbaac6e8e0..d8835c9e473 100644 --- a/.github/workflows/ocsp-cmc-test.yml +++ b/.github/workflows/ocsp-cmc-test.yml @@ -1,11 +1,9 @@ name: OCSP with CMC -on: - workflow_call: - inputs: - db-image: - required: false - type: string +on: workflow_call + +env: + DB_IMAGE: ${{ vars.DB_IMAGE || 'quay.io/389ds/dirsrv' }} jobs: # docs/installation/ocsp/Installing_OCSP_with_External_Certificates.md @@ -34,7 +32,7 @@ jobs: run: | tests/bin/ds-container-create.sh cads env: - IMAGE: ${{ inputs.db-image }} + IMAGE: ${{ env.DB_IMAGE }} HOSTNAME: cads.example.com PASSWORD: Secret.123 @@ -74,7 +72,7 @@ jobs: run: | tests/bin/ds-container-create.sh ocspds env: - IMAGE: ${{ inputs.db-image }} + IMAGE: ${{ env.DB_IMAGE }} HOSTNAME: ocspds.example.com PASSWORD: Secret.123 diff --git a/.github/workflows/ocsp-crl-direct-test.yml b/.github/workflows/ocsp-crl-direct-test.yml index 221762da1a6..946aae973ad 100644 --- a/.github/workflows/ocsp-crl-direct-test.yml +++ b/.github/workflows/ocsp-crl-direct-test.yml @@ -1,11 +1,9 @@ name: OCSP with direct CRL publishing -on: - workflow_call: - inputs: - db-image: - required: false - type: string +on: workflow_call + +env: + DB_IMAGE: ${{ vars.DB_IMAGE || 'quay.io/389ds/dirsrv' }} jobs: # https://github.com/dogtagpki/pki/wiki/Installing-Standalone-OCSP @@ -40,7 +38,7 @@ jobs: run: | tests/bin/ds-container-create.sh cads env: - IMAGE: ${{ inputs.db-image }} + IMAGE: ${{ env.DB_IMAGE }} HOSTNAME: cads.example.com PASSWORD: Secret.123 @@ -78,7 +76,7 @@ jobs: run: | tests/bin/ds-container-create.sh ocspds env: - IMAGE: ${{ inputs.db-image }} + IMAGE: ${{ env.DB_IMAGE }} HOSTNAME: ocspds.example.com PASSWORD: Secret.123 diff --git a/.github/workflows/ocsp-crl-ldap-test.yml b/.github/workflows/ocsp-crl-ldap-test.yml index 2a3983294da..cb28cd0b5ac 100644 --- a/.github/workflows/ocsp-crl-ldap-test.yml +++ b/.github/workflows/ocsp-crl-ldap-test.yml @@ -1,11 +1,9 @@ name: OCSP with LDAP-based CRL publishing -on: - workflow_call: - inputs: - db-image: - required: false - type: string +on: workflow_call + +env: + DB_IMAGE: ${{ vars.DB_IMAGE || 'quay.io/389ds/dirsrv' }} jobs: # https://github.com/dogtagpki/pki/wiki/Installing-Standalone-OCSP @@ -41,7 +39,7 @@ jobs: run: | tests/bin/ds-container-create.sh cads env: - IMAGE: ${{ inputs.db-image }} + IMAGE: ${{ env.DB_IMAGE }} HOSTNAME: cads.example.com PASSWORD: Secret.123 @@ -79,7 +77,7 @@ jobs: run: | tests/bin/ds-container-create.sh ocspds env: - IMAGE: ${{ inputs.db-image }} + IMAGE: ${{ env.DB_IMAGE }} HOSTNAME: ocspds.example.com PASSWORD: Secret.123 diff --git a/.github/workflows/ocsp-external-certs-test.yml b/.github/workflows/ocsp-external-certs-test.yml index a80f203a259..a28f6479e62 100644 --- a/.github/workflows/ocsp-external-certs-test.yml +++ b/.github/workflows/ocsp-external-certs-test.yml @@ -1,11 +1,9 @@ name: OCSP with external certs -on: - workflow_call: - inputs: - db-image: - required: false - type: string +on: workflow_call + +env: + DB_IMAGE: ${{ vars.DB_IMAGE || 'quay.io/389ds/dirsrv' }} jobs: # docs/installation/ocsp/Installing_OCSP_with_External_Certificates.md @@ -34,7 +32,7 @@ jobs: run: | tests/bin/ds-container-create.sh cads env: - IMAGE: ${{ inputs.db-image }} + IMAGE: ${{ env.DB_IMAGE }} HOSTNAME: cads.example.com PASSWORD: Secret.123 @@ -74,7 +72,7 @@ jobs: run: | tests/bin/ds-container-create.sh ocspds env: - IMAGE: ${{ inputs.db-image }} + IMAGE: ${{ env.DB_IMAGE }} HOSTNAME: ocspds.example.com PASSWORD: Secret.123 diff --git a/.github/workflows/ocsp-hsm-test.yml b/.github/workflows/ocsp-hsm-test.yml index 816b9b1a7cb..1d056b75459 100644 --- a/.github/workflows/ocsp-hsm-test.yml +++ b/.github/workflows/ocsp-hsm-test.yml @@ -1,11 +1,9 @@ name: OCSP with HSM -on: - workflow_call: - inputs: - db-image: - required: false - type: string +on: workflow_call + +env: + DB_IMAGE: ${{ vars.DB_IMAGE || 'quay.io/389ds/dirsrv' }} jobs: # docs/installation/ocsp/Installing_OCSP_with_HSM.md @@ -34,7 +32,7 @@ jobs: run: | tests/bin/ds-container-create.sh ds env: - IMAGE: ${{ inputs.db-image }} + IMAGE: ${{ env.DB_IMAGE }} HOSTNAME: ds.example.com PASSWORD: Secret.123 diff --git a/.github/workflows/ocsp-separate-test.yml b/.github/workflows/ocsp-separate-test.yml index f4eafbc64ea..ebe93de20f8 100644 --- a/.github/workflows/ocsp-separate-test.yml +++ b/.github/workflows/ocsp-separate-test.yml @@ -1,11 +1,9 @@ name: OCSP on separate instance -on: - workflow_call: - inputs: - db-image: - required: false - type: string +on: workflow_call + +env: + DB_IMAGE: ${{ vars.DB_IMAGE || 'quay.io/389ds/dirsrv' }} jobs: test: @@ -33,7 +31,7 @@ jobs: run: | tests/bin/ds-container-create.sh cads env: - IMAGE: ${{ inputs.db-image }} + IMAGE: ${{ env.DB_IMAGE }} HOSTNAME: cads.example.com PASSWORD: Secret.123 @@ -68,7 +66,7 @@ jobs: run: | tests/bin/ds-container-create.sh ocspds env: - IMAGE: ${{ inputs.db-image }} + IMAGE: ${{ env.DB_IMAGE }} HOSTNAME: ocspds.example.com PASSWORD: Secret.123 diff --git a/.github/workflows/ocsp-standalone-test.yml b/.github/workflows/ocsp-standalone-test.yml index 8ae1692931a..fb983496554 100644 --- a/.github/workflows/ocsp-standalone-test.yml +++ b/.github/workflows/ocsp-standalone-test.yml @@ -1,11 +1,9 @@ name: Standalone OCSP -on: - workflow_call: - inputs: - db-image: - required: false - type: string +on: workflow_call + +env: + DB_IMAGE: ${{ vars.DB_IMAGE || 'quay.io/389ds/dirsrv' }} jobs: # https://github.com/dogtagpki/pki/wiki/Installing-Standalone-OCSP @@ -34,7 +32,7 @@ jobs: run: | tests/bin/ds-container-create.sh ds env: - IMAGE: ${{ inputs.db-image }} + IMAGE: ${{ env.DB_IMAGE }} HOSTNAME: ds.example.com PASSWORD: Secret.123 diff --git a/.github/workflows/ocsp-tests.yml b/.github/workflows/ocsp-tests.yml index cdd196f15a5..2aa862cc7b5 100644 --- a/.github/workflows/ocsp-tests.yml +++ b/.github/workflows/ocsp-tests.yml @@ -18,64 +18,46 @@ jobs: name: Basic OCSP needs: [init, build] uses: ./.github/workflows/ocsp-basic-test.yml - with: - db-image: ${{ needs.init.outputs.db-image }} ocsp-separate-test: name: OCSP on separate instance needs: [init, build] uses: ./.github/workflows/ocsp-separate-test.yml - with: - db-image: ${{ needs.init.outputs.db-image }} ocsp-external-certs-test: name: OCSP with external certs needs: [init, build] uses: ./.github/workflows/ocsp-external-certs-test.yml - with: - db-image: ${{ needs.init.outputs.db-image }} ocsp-cmc-test: name: OCSP with CMC needs: [init, build] uses: ./.github/workflows/ocsp-cmc-test.yml - with: - db-image: ${{ needs.init.outputs.db-image }} ocsp-clone-test: name: OCSP clone needs: [init, build] uses: ./.github/workflows/ocsp-clone-test.yml - with: - db-image: ${{ needs.init.outputs.db-image }} ocsp-standalone-test: name: Standalone OCSP needs: [init, build] uses: ./.github/workflows/ocsp-standalone-test.yml - with: - db-image: ${{ needs.init.outputs.db-image }} ocsp-crl-direct-test: name: OCSP with direct CRL publishing needs: [init, build] uses: ./.github/workflows/ocsp-crl-direct-test.yml - with: - db-image: ${{ needs.init.outputs.db-image }} ocsp-crl-ldap-test: name: OCSP with LDAP-based CRL publishing needs: [init, build] uses: ./.github/workflows/ocsp-crl-ldap-test.yml - with: - db-image: ${{ needs.init.outputs.db-image }} ocsp-hsm-test: name: OCSP with HSM needs: [init, build] uses: ./.github/workflows/ocsp-hsm-test.yml - with: - db-image: ${{ needs.init.outputs.db-image }} ocsp-crl-ldap-self-verification-test: name: OCSP with self certificate verification test diff --git a/.github/workflows/pki-nss-aes-test.yml b/.github/workflows/pki-nss-aes-test.yml index 42f8a6a4bee..dd60c92e072 100644 --- a/.github/workflows/pki-nss-aes-test.yml +++ b/.github/workflows/pki-nss-aes-test.yml @@ -1,11 +1,9 @@ name: PKI NSS CLI with AES -on: - workflow_call: - inputs: - db-image: - required: false - type: string +on: workflow_call + +env: + DB_IMAGE: ${{ vars.DB_IMAGE || 'quay.io/389ds/dirsrv' }} jobs: # https://github.com/dogtagpki/pki/wiki/PKI-NSS-CLI diff --git a/.github/workflows/pki-nss-ecc-test.yml b/.github/workflows/pki-nss-ecc-test.yml index d71fce0d5e0..80b6f8b78bb 100644 --- a/.github/workflows/pki-nss-ecc-test.yml +++ b/.github/workflows/pki-nss-ecc-test.yml @@ -1,11 +1,9 @@ name: PKI NSS CLI with ECC -on: - workflow_call: - inputs: - db-image: - required: false - type: string +on: workflow_call + +env: + DB_IMAGE: ${{ vars.DB_IMAGE || 'quay.io/389ds/dirsrv' }} jobs: # https://github.com/dogtagpki/pki/wiki/PKI-NSS-CLI diff --git a/.github/workflows/pki-nss-exts-test.yml b/.github/workflows/pki-nss-exts-test.yml index 54e259c6c84..09a01fc696f 100644 --- a/.github/workflows/pki-nss-exts-test.yml +++ b/.github/workflows/pki-nss-exts-test.yml @@ -1,11 +1,9 @@ name: PKI NSS CLI with Extensions -on: - workflow_call: - inputs: - db-image: - required: false - type: string +on: workflow_call + +env: + DB_IMAGE: ${{ vars.DB_IMAGE || 'quay.io/389ds/dirsrv' }} jobs: # https://github.com/dogtagpki/pki/wiki/PKI-NSS-CLI diff --git a/.github/workflows/pki-nss-hsm-test.yml b/.github/workflows/pki-nss-hsm-test.yml index 880a320828d..efa8b3bc4f8 100644 --- a/.github/workflows/pki-nss-hsm-test.yml +++ b/.github/workflows/pki-nss-hsm-test.yml @@ -1,11 +1,9 @@ name: PKI NSS CLI with HSM -on: - workflow_call: - inputs: - db-image: - required: false - type: string +on: workflow_call + +env: + DB_IMAGE: ${{ vars.DB_IMAGE || 'quay.io/389ds/dirsrv' }} jobs: # https://github.com/dogtagpki/pki/wiki/PKI-NSS-CLI diff --git a/.github/workflows/pki-nss-rsa-test.yml b/.github/workflows/pki-nss-rsa-test.yml index 695d53ff2a8..8b3cf7e303a 100644 --- a/.github/workflows/pki-nss-rsa-test.yml +++ b/.github/workflows/pki-nss-rsa-test.yml @@ -1,11 +1,9 @@ name: PKI NSS CLI with RSA -on: - workflow_call: - inputs: - db-image: - required: false - type: string +on: workflow_call + +env: + DB_IMAGE: ${{ vars.DB_IMAGE || 'quay.io/389ds/dirsrv' }} jobs: # https://github.com/dogtagpki/pki/wiki/PKI-NSS-CLI diff --git a/.github/workflows/pki-pkcs11-test.yml b/.github/workflows/pki-pkcs11-test.yml index 4379975f792..70d2de36c39 100644 --- a/.github/workflows/pki-pkcs11-test.yml +++ b/.github/workflows/pki-pkcs11-test.yml @@ -1,11 +1,9 @@ name: PKI PKCS11 CLI -on: - workflow_call: - inputs: - db-image: - required: false - type: string +on: workflow_call + +env: + DB_IMAGE: ${{ vars.DB_IMAGE || 'quay.io/389ds/dirsrv' }} jobs: # https://github.com/dogtagpki/pki/wiki/PKI-PKCS11-CLI diff --git a/.github/workflows/pki-pkcs12-test.yml b/.github/workflows/pki-pkcs12-test.yml index 68086c9d8e6..431dfce53a3 100644 --- a/.github/workflows/pki-pkcs12-test.yml +++ b/.github/workflows/pki-pkcs12-test.yml @@ -1,11 +1,9 @@ name: PKI PKCS12 CLI -on: - workflow_call: - inputs: - db-image: - required: false - type: string +on: workflow_call + +env: + DB_IMAGE: ${{ vars.DB_IMAGE || 'quay.io/389ds/dirsrv' }} jobs: # https://github.com/dogtagpki/pki/wiki/PKI-PKCS12-CLI diff --git a/.github/workflows/pki-pkcs7-test.yml b/.github/workflows/pki-pkcs7-test.yml index 7a6adddcdd5..1d909168622 100644 --- a/.github/workflows/pki-pkcs7-test.yml +++ b/.github/workflows/pki-pkcs7-test.yml @@ -1,11 +1,9 @@ name: PKI PKCS7 CLI -on: - workflow_call: - inputs: - db-image: - required: false - type: string +on: workflow_call + +env: + DB_IMAGE: ${{ vars.DB_IMAGE || 'quay.io/389ds/dirsrv' }} jobs: # docs/user/tools/Using-PKI-PKCS7-CLI.adoc diff --git a/.github/workflows/rpminspect-test.yml b/.github/workflows/rpminspect-test.yml index 9c948098477..97491aec496 100644 --- a/.github/workflows/rpminspect-test.yml +++ b/.github/workflows/rpminspect-test.yml @@ -1,11 +1,9 @@ name: rpminspect -on: - workflow_call: - inputs: - db-image: - required: false - type: string +on: workflow_call + +env: + DB_IMAGE: ${{ vars.DB_IMAGE || 'quay.io/389ds/dirsrv' }} jobs: test: diff --git a/.github/workflows/scep-test.yml b/.github/workflows/scep-test.yml index 75ea9cba589..69f2142ea8f 100644 --- a/.github/workflows/scep-test.yml +++ b/.github/workflows/scep-test.yml @@ -1,11 +1,9 @@ name: SCEP responder -on: - workflow_call: - inputs: - db-image: - required: false - type: string +on: workflow_call + +env: + DB_IMAGE: ${{ vars.DB_IMAGE || 'quay.io/389ds/dirsrv' }} jobs: test: @@ -33,7 +31,7 @@ jobs: run: | tests/bin/ds-container-create.sh ds env: - IMAGE: ${{ inputs.db-image }} + IMAGE: ${{ env.DB_IMAGE }} HOSTNAME: ds.example.com PASSWORD: Secret.123 diff --git a/.github/workflows/server-backup-test.yml b/.github/workflows/server-backup-test.yml index 6109171e360..dbbc24d16a8 100644 --- a/.github/workflows/server-backup-test.yml +++ b/.github/workflows/server-backup-test.yml @@ -1,11 +1,9 @@ name: Server backup -on: - workflow_call: - inputs: - db-image: - required: false - type: string +on: workflow_call + +env: + DB_IMAGE: ${{ vars.DB_IMAGE || 'quay.io/389ds/dirsrv' }} jobs: test: diff --git a/.github/workflows/server-basic-test.yml b/.github/workflows/server-basic-test.yml index c0a7f8f1ee8..06711610270 100644 --- a/.github/workflows/server-basic-test.yml +++ b/.github/workflows/server-basic-test.yml @@ -1,11 +1,9 @@ name: Basic server -on: - workflow_call: - inputs: - db-image: - required: false - type: string +on: workflow_call + +env: + DB_IMAGE: ${{ vars.DB_IMAGE || 'quay.io/389ds/dirsrv' }} jobs: # docs/installation/server/Installing_Basic_PKI_Server.md diff --git a/.github/workflows/server-container-test.yml b/.github/workflows/server-container-test.yml index 63ab1c75e8a..09a42cf8d7b 100644 --- a/.github/workflows/server-container-test.yml +++ b/.github/workflows/server-container-test.yml @@ -1,11 +1,9 @@ name: Server container -on: - workflow_call: - inputs: - db-image: - required: false - type: string +on: workflow_call + +env: + DB_IMAGE: ${{ vars.DB_IMAGE || 'quay.io/389ds/dirsrv' }} jobs: test: diff --git a/.github/workflows/server-https-jks-test.yml b/.github/workflows/server-https-jks-test.yml index 16de9544b3f..0cf36549ffd 100644 --- a/.github/workflows/server-https-jks-test.yml +++ b/.github/workflows/server-https-jks-test.yml @@ -1,11 +1,9 @@ name: HTTPS connector with JKS file -on: - workflow_call: - inputs: - db-image: - required: false - type: string +on: workflow_call + +env: + DB_IMAGE: ${{ vars.DB_IMAGE || 'quay.io/389ds/dirsrv' }} jobs: # docs/admin/server/Configuring-HTTPS-Connector-with-JKS-File.adoc diff --git a/.github/workflows/server-https-nss-test.yml b/.github/workflows/server-https-nss-test.yml index e6881a067d4..d233efbe480 100644 --- a/.github/workflows/server-https-nss-test.yml +++ b/.github/workflows/server-https-nss-test.yml @@ -1,11 +1,9 @@ name: HTTPS connector with NSS database -on: - workflow_call: - inputs: - db-image: - required: false - type: string +on: workflow_call + +env: + DB_IMAGE: ${{ vars.DB_IMAGE || 'quay.io/389ds/dirsrv' }} jobs: # docs/admin/server/Configuring-HTTPS-Connector-with-NSS-Database.adoc diff --git a/.github/workflows/server-https-pem-test.yml b/.github/workflows/server-https-pem-test.yml index 92fa902edee..86db15374e7 100644 --- a/.github/workflows/server-https-pem-test.yml +++ b/.github/workflows/server-https-pem-test.yml @@ -1,11 +1,9 @@ name: HTTPS connector with PEM files -on: - workflow_call: - inputs: - db-image: - required: false - type: string +on: workflow_call + +env: + DB_IMAGE: ${{ vars.DB_IMAGE || 'quay.io/389ds/dirsrv' }} jobs: # docs/admin/server/Configuring-HTTPS-Connector-with-PEM-Files.adoc diff --git a/.github/workflows/server-https-pkcs12-test.yml b/.github/workflows/server-https-pkcs12-test.yml index 54be00c51c7..7b29997317f 100644 --- a/.github/workflows/server-https-pkcs12-test.yml +++ b/.github/workflows/server-https-pkcs12-test.yml @@ -1,11 +1,9 @@ name: "HTTPS connector with PKCS #12 file" -on: - workflow_call: - inputs: - db-image: - required: false - type: string +on: workflow_call + +env: + DB_IMAGE: ${{ vars.DB_IMAGE || 'quay.io/389ds/dirsrv' }} jobs: # docs/admin/server/Configuring-HTTPS-Connector-with-PKCS12-File.adoc diff --git a/.github/workflows/server-tests.yml b/.github/workflows/server-tests.yml index edc9f7765af..0476d70d5a5 100644 --- a/.github/workflows/server-tests.yml +++ b/.github/workflows/server-tests.yml @@ -18,54 +18,38 @@ jobs: name: Basic server needs: [init, build] uses: ./.github/workflows/server-basic-test.yml - with: - db-image: ${{ needs.init.outputs.db-image }} server-https-pem-test: name: HTTPS connector with PEM files needs: [init, build] uses: ./.github/workflows/server-https-pem-test.yml - with: - db-image: ${{ needs.init.outputs.db-image }} server-https-jks-test: name: HTTPS connector with JKS file needs: [init, build] uses: ./.github/workflows/server-https-jks-test.yml - with: - db-image: ${{ needs.init.outputs.db-image }} server-https-pkcs12-test: name: "HTTPS connector with PKCS #12 file" needs: [init, build] uses: ./.github/workflows/server-https-pkcs12-test.yml - with: - db-image: ${{ needs.init.outputs.db-image }} server-https-nss-test: name: HTTPS connector with NSS database needs: [init, build] uses: ./.github/workflows/server-https-nss-test.yml - with: - db-image: ${{ needs.init.outputs.db-image }} server-backup-test: name: Server backup needs: [init, build] uses: ./.github/workflows/server-backup-test.yml - with: - db-image: ${{ needs.init.outputs.db-image }} server-upgrade-test: name: Server upgrade needs: [init, build] uses: ./.github/workflows/server-upgrade-test.yml - with: - db-image: ${{ needs.init.outputs.db-image }} server-container-test: name: Server container needs: [init, build] uses: ./.github/workflows/server-container-test.yml - with: - db-image: ${{ needs.init.outputs.db-image }} diff --git a/.github/workflows/server-upgrade-test.yml b/.github/workflows/server-upgrade-test.yml index 7c924fbc15e..93738de938e 100644 --- a/.github/workflows/server-upgrade-test.yml +++ b/.github/workflows/server-upgrade-test.yml @@ -1,11 +1,9 @@ name: Server upgrade -on: - workflow_call: - inputs: - db-image: - required: false - type: string +on: workflow_call + +env: + DB_IMAGE: ${{ vars.DB_IMAGE || 'quay.io/389ds/dirsrv' }} jobs: test: diff --git a/.github/workflows/subca-basic-test.yml b/.github/workflows/subca-basic-test.yml index 96cc42a4abd..0eaafdcbed2 100644 --- a/.github/workflows/subca-basic-test.yml +++ b/.github/workflows/subca-basic-test.yml @@ -1,11 +1,9 @@ name: Basic Sub-CA -on: - workflow_call: - inputs: - db-image: - required: false - type: string +on: workflow_call + +env: + DB_IMAGE: ${{ vars.DB_IMAGE || 'quay.io/389ds/dirsrv' }} jobs: # docs/installation/ca/Installing_Subordinate_CA.md @@ -34,7 +32,7 @@ jobs: run: | tests/bin/ds-container-create.sh rootds env: - IMAGE: ${{ inputs.db-image }} + IMAGE: ${{ env.DB_IMAGE }} HOSTNAME: rootds.example.com PASSWORD: Secret.123 @@ -69,7 +67,7 @@ jobs: run: | tests/bin/ds-container-create.sh subds env: - IMAGE: ${{ inputs.db-image }} + IMAGE: ${{ env.DB_IMAGE }} HOSTNAME: subds.example.com PASSWORD: Secret.123 diff --git a/.github/workflows/subca-clone-hsm-test.yml b/.github/workflows/subca-clone-hsm-test.yml index 8beda9139c0..156e4d732c8 100644 --- a/.github/workflows/subca-clone-hsm-test.yml +++ b/.github/workflows/subca-clone-hsm-test.yml @@ -2,12 +2,10 @@ name: Sub-CA clone # docs/installation/ca/Installing_CA_with_External_CA_Signing_Certificate.md # docs/installation/ca/Installing_CA_Clone_with_HSM.md -on: - workflow_call: - inputs: - db-image: - required: false - type: string +on: workflow_call + +env: + DB_IMAGE: ${{ vars.DB_IMAGE || 'quay.io/389ds/dirsrv' }} jobs: test: @@ -59,7 +57,7 @@ jobs: run: | tests/bin/ds-container-create.sh primary-ds env: - IMAGE: ${{ inputs.db-image }} + IMAGE: ${{ env.DB_IMAGE }} HOSTNAME: primary-ds.example.com PASSWORD: Secret.123 @@ -292,7 +290,7 @@ jobs: run: | tests/bin/ds-container-create.sh secondary-ds env: - IMAGE: ${{ inputs.db-image }} + IMAGE: ${{ env.DB_IMAGE }} HOSTNAME: secondary-ds.example.com PASSWORD: Secret.123 diff --git a/.github/workflows/subca-clone-test.yml b/.github/workflows/subca-clone-test.yml index a9e2b3c26e6..43d1a613831 100644 --- a/.github/workflows/subca-clone-test.yml +++ b/.github/workflows/subca-clone-test.yml @@ -2,12 +2,10 @@ name: Sub-CA clone # docs/installation/ca/Installing_CA_with_External_CA_Signing_Certificate.md # https://github.com/dogtagpki/pki/blob/master/docs/installation/ca/Installing_CA_Clone.md -on: - workflow_call: - inputs: - db-image: - required: false - type: string +on: workflow_call + +env: + DB_IMAGE: ${{ vars.DB_IMAGE || 'quay.io/389ds/dirsrv' }} jobs: test: @@ -59,7 +57,7 @@ jobs: run: | tests/bin/ds-container-create.sh primary-ds env: - IMAGE: ${{ inputs.db-image }} + IMAGE: ${{ env.DB_IMAGE }} HOSTNAME: primary-ds.example.com PASSWORD: Secret.123 @@ -134,7 +132,7 @@ jobs: run: | tests/bin/ds-container-create.sh secondary-ds env: - IMAGE: ${{ inputs.db-image }} + IMAGE: ${{ env.DB_IMAGE }} HOSTNAME: secondary-ds.example.com PASSWORD: Secret.123 diff --git a/.github/workflows/subca-cmc-test.yml b/.github/workflows/subca-cmc-test.yml index c4089287799..1048d136d16 100644 --- a/.github/workflows/subca-cmc-test.yml +++ b/.github/workflows/subca-cmc-test.yml @@ -1,11 +1,9 @@ name: Sub-CA with CMC -on: - workflow_call: - inputs: - db-image: - required: false - type: string +on: workflow_call + +env: + DB_IMAGE: ${{ vars.DB_IMAGE || 'quay.io/389ds/dirsrv' }} jobs: # docs/installation/ca/Installing_CA_with_External_CA_Signing_Certificate.md @@ -34,7 +32,7 @@ jobs: run: | tests/bin/ds-container-create.sh rootds env: - IMAGE: ${{ inputs.db-image }} + IMAGE: ${{ env.DB_IMAGE }} HOSTNAME: rootds.example.com PASSWORD: Secret.123 @@ -90,7 +88,7 @@ jobs: run: | tests/bin/ds-container-create.sh subds env: - IMAGE: ${{ inputs.db-image }} + IMAGE: ${{ env.DB_IMAGE }} HOSTNAME: subds.example.com PASSWORD: Secret.123 diff --git a/.github/workflows/subca-external-test.yml b/.github/workflows/subca-external-test.yml index 1417215a6b9..6a34d4f943e 100644 --- a/.github/workflows/subca-external-test.yml +++ b/.github/workflows/subca-external-test.yml @@ -1,11 +1,9 @@ name: Sub-CA with external cert -on: - workflow_call: - inputs: - db-image: - required: false - type: string +on: workflow_call + +env: + DB_IMAGE: ${{ vars.DB_IMAGE || 'quay.io/389ds/dirsrv' }} jobs: # docs/installation/ca/Installing_CA_with_External_CA_Signing_Certificate.md @@ -34,7 +32,7 @@ jobs: run: | tests/bin/ds-container-create.sh ds env: - IMAGE: ${{ inputs.db-image }} + IMAGE: ${{ env.DB_IMAGE }} HOSTNAME: ds.example.com PASSWORD: Secret.123 diff --git a/.github/workflows/subca-hsm-test.yml b/.github/workflows/subca-hsm-test.yml index a3df8016eae..058bf08ff58 100644 --- a/.github/workflows/subca-hsm-test.yml +++ b/.github/workflows/subca-hsm-test.yml @@ -1,11 +1,9 @@ name: Sub-CA with HSM -on: - workflow_call: - inputs: - db-image: - required: false - type: string +on: workflow_call + +env: + DB_IMAGE: ${{ vars.DB_IMAGE || 'quay.io/389ds/dirsrv' }} jobs: # docs/installation/ca/Installing_CA_with_External_CA_Signing_Certificate.md @@ -34,7 +32,7 @@ jobs: run: | tests/bin/ds-container-create.sh ds env: - IMAGE: ${{ inputs.db-image }} + IMAGE: ${{ env.DB_IMAGE }} HOSTNAME: ds.example.com PASSWORD: Secret.123 diff --git a/.github/workflows/subca-lightweight-hsm-test.yml b/.github/workflows/subca-lightweight-hsm-test.yml index 77bcf8b98a5..3d763cd3849 100644 --- a/.github/workflows/subca-lightweight-hsm-test.yml +++ b/.github/workflows/subca-lightweight-hsm-test.yml @@ -1,11 +1,9 @@ name: Lightweight CA -on: - workflow_call: - inputs: - db-image: - required: false - type: string +on: workflow_call + +env: + DB_IMAGE: ${{ vars.DB_IMAGE || 'quay.io/389ds/dirsrv' }} jobs: # docs/installation/ca/Installing_CA.md @@ -34,7 +32,7 @@ jobs: run: | tests/bin/ds-container-create.sh ds env: - IMAGE: ${{ inputs.db-image }} + IMAGE: ${{ env.DB_IMAGE }} HOSTNAME: ds.example.com PASSWORD: Secret.123 diff --git a/.github/workflows/subca-lightweight-test.yml b/.github/workflows/subca-lightweight-test.yml index 0194597b74e..09bc78eef5c 100644 --- a/.github/workflows/subca-lightweight-test.yml +++ b/.github/workflows/subca-lightweight-test.yml @@ -1,11 +1,9 @@ name: Lightweight CA -on: - workflow_call: - inputs: - db-image: - required: false - type: string +on: workflow_call + +env: + DB_IMAGE: ${{ vars.DB_IMAGE || 'quay.io/389ds/dirsrv' }} jobs: # docs/installation/ca/Installing_CA.md @@ -34,7 +32,7 @@ jobs: run: | tests/bin/ds-container-create.sh ds env: - IMAGE: ${{ inputs.db-image }} + IMAGE: ${{ env.DB_IMAGE }} HOSTNAME: ds.example.com PASSWORD: Secret.123 diff --git a/.github/workflows/subca-tests.yml b/.github/workflows/subca-tests.yml index 413c9c9fb35..1ee84c86276 100644 --- a/.github/workflows/subca-tests.yml +++ b/.github/workflows/subca-tests.yml @@ -18,54 +18,38 @@ jobs: name: Basic SubCA needs: [init, build] uses: ./.github/workflows/subca-basic-test.yml - with: - db-image: ${{ needs.init.outputs.db-image }} subca-cmc-test: name: SubCA with CMC needs: [init, build] uses: ./.github/workflows/subca-cmc-test.yml - with: - db-image: ${{ needs.init.outputs.db-image }} subca-external-test: name: SubCA with external cert needs: [init, build] uses: ./.github/workflows/subca-external-test.yml - with: - db-image: ${{ needs.init.outputs.db-image }} subca-hsm-test: name: SubCA with HSM needs: [init, build] uses: ./.github/workflows/subca-hsm-test.yml - with: - db-image: ${{ needs.init.outputs.db-image }} subca-clone-test: name: SubCA clone needs: [init, build] uses: ./.github/workflows/subca-clone-test.yml - with: - db-image: ${{ needs.init.outputs.db-image }} subca-clone-heml-test: name: SubCA clone with HSM needs: [init, build] uses: ./.github/workflows/subca-clone-hsm-test.yml - with: - db-image: ${{ needs.init.outputs.db-image }} subca-lightweight-test: name: Lightweight SubCA needs: [init, build] uses: ./.github/workflows/subca-lightweight-test.yml - with: - db-image: ${{ needs.init.outputs.db-image }} subca-lightweight-hsm-test: name: Lightweight SubCA with HSM needs: [init, build] uses: ./.github/workflows/subca-lightweight-hsm-test.yml - with: - db-image: ${{ needs.init.outputs.db-image }} diff --git a/.github/workflows/tks-basic-test.yml b/.github/workflows/tks-basic-test.yml index 01ace06b9bf..96217359228 100644 --- a/.github/workflows/tks-basic-test.yml +++ b/.github/workflows/tks-basic-test.yml @@ -1,11 +1,9 @@ name: Basic TKS -on: - workflow_call: - inputs: - db-image: - required: false - type: string +on: workflow_call + +env: + DB_IMAGE: ${{ vars.DB_IMAGE || 'quay.io/389ds/dirsrv' }} jobs: # docs/installation/tks/Installing_TKS.md @@ -34,7 +32,7 @@ jobs: run: | tests/bin/ds-container-create.sh ds env: - IMAGE: ${{ inputs.db-image }} + IMAGE: ${{ env.DB_IMAGE }} HOSTNAME: ds.example.com PASSWORD: Secret.123 diff --git a/.github/workflows/tks-clone-test.yml b/.github/workflows/tks-clone-test.yml index b36a95a89bf..3b666666cc4 100644 --- a/.github/workflows/tks-clone-test.yml +++ b/.github/workflows/tks-clone-test.yml @@ -1,11 +1,9 @@ name: TKS clone -on: - workflow_call: - inputs: - db-image: - required: false - type: string +on: workflow_call + +env: + DB_IMAGE: ${{ vars.DB_IMAGE || 'quay.io/389ds/dirsrv' }} jobs: # docs/installation/tks/Installing_TKS_Clone.md @@ -36,7 +34,7 @@ jobs: run: | tests/bin/ds-container-create.sh primaryds env: - IMAGE: ${{ inputs.db-image }} + IMAGE: ${{ env.DB_IMAGE }} HOSTNAME: primaryds.example.com PASSWORD: Secret.123 @@ -78,7 +76,7 @@ jobs: run: | tests/bin/ds-container-create.sh secondaryds env: - IMAGE: ${{ inputs.db-image }} + IMAGE: ${{ env.DB_IMAGE }} HOSTNAME: secondaryds.example.com PASSWORD: Secret.123 @@ -138,7 +136,7 @@ jobs: run: | tests/bin/ds-container-create.sh tertiaryds env: - IMAGE: ${{ inputs.db-image }} + IMAGE: ${{ env.DB_IMAGE }} HOSTNAME: tertiaryds.example.com PASSWORD: Secret.123 diff --git a/.github/workflows/tks-external-certs-test.yml b/.github/workflows/tks-external-certs-test.yml index 917fc351d33..8b07f41d256 100644 --- a/.github/workflows/tks-external-certs-test.yml +++ b/.github/workflows/tks-external-certs-test.yml @@ -1,11 +1,9 @@ name: TKS with external certs -on: - workflow_call: - inputs: - db-image: - required: false - type: string +on: workflow_call + +env: + DB_IMAGE: ${{ vars.DB_IMAGE || 'quay.io/389ds/dirsrv' }} jobs: test: @@ -33,7 +31,7 @@ jobs: run: | tests/bin/ds-container-create.sh cads env: - IMAGE: ${{ inputs.db-image }} + IMAGE: ${{ env.DB_IMAGE }} HOSTNAME: cads.example.com PASSWORD: Secret.123 @@ -73,7 +71,7 @@ jobs: run: | tests/bin/ds-container-create.sh tksds env: - IMAGE: ${{ inputs.db-image }} + IMAGE: ${{ env.DB_IMAGE }} HOSTNAME: tksds.example.com PASSWORD: Secret.123 diff --git a/.github/workflows/tks-hsm-test.yml b/.github/workflows/tks-hsm-test.yml index 913475de363..764944c3aa9 100644 --- a/.github/workflows/tks-hsm-test.yml +++ b/.github/workflows/tks-hsm-test.yml @@ -1,11 +1,9 @@ name: TKS with HSM -on: - workflow_call: - inputs: - db-image: - required: false - type: string +on: workflow_call + +env: + DB_IMAGE: ${{ vars.DB_IMAGE || 'quay.io/389ds/dirsrv' }} jobs: # docs/installation/tks/Installing_TKS_with_HSM.md @@ -34,7 +32,7 @@ jobs: run: | tests/bin/ds-container-create.sh ds env: - IMAGE: ${{ inputs.db-image }} + IMAGE: ${{ env.DB_IMAGE }} HOSTNAME: ds.example.com PASSWORD: Secret.123 diff --git a/.github/workflows/tks-separate-test.yml b/.github/workflows/tks-separate-test.yml index f9bca2f7684..ff34860f60a 100644 --- a/.github/workflows/tks-separate-test.yml +++ b/.github/workflows/tks-separate-test.yml @@ -1,11 +1,9 @@ name: TKS on separate instance -on: - workflow_call: - inputs: - db-image: - required: false - type: string +on: workflow_call + +env: + DB_IMAGE: ${{ vars.DB_IMAGE || 'quay.io/389ds/dirsrv' }} jobs: test: @@ -33,7 +31,7 @@ jobs: run: | tests/bin/ds-container-create.sh cads env: - IMAGE: ${{ inputs.db-image }} + IMAGE: ${{ env.DB_IMAGE }} HOSTNAME: cads.example.com PASSWORD: Secret.123 @@ -68,7 +66,7 @@ jobs: run: | tests/bin/ds-container-create.sh tksds env: - IMAGE: ${{ inputs.db-image }} + IMAGE: ${{ env.DB_IMAGE }} HOSTNAME: tksds.example.com PASSWORD: Secret.123 diff --git a/.github/workflows/tks-tests.yml b/.github/workflows/tks-tests.yml index 9ca103c37be..eed3470e6ab 100644 --- a/.github/workflows/tks-tests.yml +++ b/.github/workflows/tks-tests.yml @@ -18,33 +18,23 @@ jobs: name: Basic TKS needs: [init, build] uses: ./.github/workflows/tks-basic-test.yml - with: - db-image: ${{ needs.init.outputs.db-image }} tks-separate-test: name: TKS on separate instance needs: [init, build] uses: ./.github/workflows/tks-separate-test.yml - with: - db-image: ${{ needs.init.outputs.db-image }} tks-external-certs-test: name: TKS with external certs needs: [init, build] uses: ./.github/workflows/tks-external-certs-test.yml - with: - db-image: ${{ needs.init.outputs.db-image }} tks-clone-test: name: TKS clone needs: [init, build] uses: ./.github/workflows/tks-clone-test.yml - with: - db-image: ${{ needs.init.outputs.db-image }} tks-hsm-test: name: TKS with HSM needs: [init, build] uses: ./.github/workflows/tks-hsm-test.yml - with: - db-image: ${{ needs.init.outputs.db-image }} diff --git a/.github/workflows/tools-tests.yml b/.github/workflows/tools-tests.yml index db9b552e6b0..278b3ba3b4f 100644 --- a/.github/workflows/tools-tests.yml +++ b/.github/workflows/tools-tests.yml @@ -18,71 +18,51 @@ jobs: name: PKICertImport needs: [init, build] uses: ./.github/workflows/PKICertImport-test.yml - with: - db-image: ${{ needs.init.outputs.db-image }} pki-nss-rsa-test: name: PKI NSS CLI with RSA needs: [init, build] uses: ./.github/workflows/pki-nss-rsa-test.yml - with: - db-image: ${{ needs.init.outputs.db-image }} pki-nss-ecc-test: name: PKI NSS CLI with ECC needs: [init, build] uses: ./.github/workflows/pki-nss-ecc-test.yml - with: - db-image: ${{ needs.init.outputs.db-image }} pki-nss-aes-test: name: PKI NSS CLI with AES needs: [init, build] uses: ./.github/workflows/pki-nss-aes-test.yml - with: - db-image: ${{ needs.init.outputs.db-image }} pki-nss-hsm-test: name: PKI NSS CLI with HSM needs: [init, build] uses: ./.github/workflows/pki-nss-hsm-test.yml - with: - db-image: ${{ needs.init.outputs.db-image }} pki-nss-exts-test: name: PKI NSS CLI with Extensions needs: [init, build] uses: ./.github/workflows/pki-nss-exts-test.yml - with: - db-image: ${{ needs.init.outputs.db-image }} pki-pkcs7-test: name: PKI PKCS7 CLI needs: [init, build] uses: ./.github/workflows/pki-pkcs7-test.yml - with: - db-image: ${{ needs.init.outputs.db-image }} pki-pkcs11-test: name: PKI PKCS11 CLI needs: [init, build] uses: ./.github/workflows/pki-pkcs11-test.yml - with: - db-image: ${{ needs.init.outputs.db-image }} pki-pkcs12-test: name: PKI PKCS12 CLI needs: [init, build] uses: ./.github/workflows/pki-pkcs12-test.yml - with: - db-image: ${{ needs.init.outputs.db-image }} rpminspect-test: name: rpminspect needs: [init, build] uses: ./.github/workflows/rpminspect-test.yml - with: - db-image: ${{ needs.init.outputs.db-image }} update-version-test: name: Update Version diff --git a/.github/workflows/tps-basic-test.yml b/.github/workflows/tps-basic-test.yml index 96aac296bde..3338b68b29c 100644 --- a/.github/workflows/tps-basic-test.yml +++ b/.github/workflows/tps-basic-test.yml @@ -1,11 +1,9 @@ name: Basic TPS -on: - workflow_call: - inputs: - db-image: - required: false - type: string +on: workflow_call + +env: + DB_IMAGE: ${{ vars.DB_IMAGE || 'quay.io/389ds/dirsrv' }} jobs: # docs/installation/tps/Installing_TPS.md @@ -34,7 +32,7 @@ jobs: run: | tests/bin/ds-container-create.sh ds env: - IMAGE: ${{ inputs.db-image }} + IMAGE: ${{ env.DB_IMAGE }} HOSTNAME: ds.example.com PASSWORD: Secret.123 diff --git a/.github/workflows/tps-clone-test.yml b/.github/workflows/tps-clone-test.yml index cd49a0af6a4..ba31433fd4f 100644 --- a/.github/workflows/tps-clone-test.yml +++ b/.github/workflows/tps-clone-test.yml @@ -1,11 +1,9 @@ name: TPS clone -on: - workflow_call: - inputs: - db-image: - required: false - type: string +on: workflow_call + +env: + DB_IMAGE: ${{ vars.DB_IMAGE || 'quay.io/389ds/dirsrv' }} jobs: # docs/installation/tps/Installing_TPS_Clone.md @@ -36,7 +34,7 @@ jobs: run: | tests/bin/ds-container-create.sh primaryds env: - IMAGE: ${{ inputs.db-image }} + IMAGE: ${{ env.DB_IMAGE }} HOSTNAME: primaryds.example.com PASSWORD: Secret.123 @@ -103,7 +101,7 @@ jobs: run: | tests/bin/ds-container-create.sh secondaryds env: - IMAGE: ${{ inputs.db-image }} + IMAGE: ${{ env.DB_IMAGE }} HOSTNAME: secondaryds.example.com PASSWORD: Secret.123 diff --git a/.github/workflows/tps-external-certs-test.yml b/.github/workflows/tps-external-certs-test.yml index cd3e9a53ac3..605adbc0a26 100644 --- a/.github/workflows/tps-external-certs-test.yml +++ b/.github/workflows/tps-external-certs-test.yml @@ -1,11 +1,9 @@ name: TPS with external certs -on: - workflow_call: - inputs: - db-image: - required: false - type: string +on: workflow_call + +env: + DB_IMAGE: ${{ vars.DB_IMAGE || 'quay.io/389ds/dirsrv' }} jobs: test: @@ -33,7 +31,7 @@ jobs: run: | tests/bin/ds-container-create.sh cads env: - IMAGE: ${{ inputs.db-image }} + IMAGE: ${{ env.DB_IMAGE }} HOSTNAME: cads.example.com PASSWORD: Secret.123 @@ -73,7 +71,7 @@ jobs: run: | tests/bin/ds-container-create.sh krads env: - IMAGE: ${{ inputs.db-image }} + IMAGE: ${{ env.DB_IMAGE }} HOSTNAME: krads.example.com PASSWORD: Secret.123 @@ -110,7 +108,7 @@ jobs: run: | tests/bin/ds-container-create.sh tksds env: - IMAGE: ${{ inputs.db-image }} + IMAGE: ${{ env.DB_IMAGE }} HOSTNAME: tksds.example.com PASSWORD: Secret.123 @@ -144,7 +142,7 @@ jobs: run: | tests/bin/ds-container-create.sh tpsds env: - IMAGE: ${{ inputs.db-image }} + IMAGE: ${{ env.DB_IMAGE }} HOSTNAME: tpsds.example.com PASSWORD: Secret.123 diff --git a/.github/workflows/tps-hsm-test.yml b/.github/workflows/tps-hsm-test.yml index 6515eb7fe0d..3be5eaeb5ea 100644 --- a/.github/workflows/tps-hsm-test.yml +++ b/.github/workflows/tps-hsm-test.yml @@ -1,11 +1,9 @@ name: TPS with HSM -on: - workflow_call: - inputs: - db-image: - required: false - type: string +on: workflow_call + +env: + DB_IMAGE: ${{ vars.DB_IMAGE || 'quay.io/389ds/dirsrv' }} jobs: # docs/installation/tps/Installing_TPS_with_HSM.md @@ -34,7 +32,7 @@ jobs: run: | tests/bin/ds-container-create.sh ds env: - IMAGE: ${{ inputs.db-image }} + IMAGE: ${{ env.DB_IMAGE }} HOSTNAME: ds.example.com PASSWORD: Secret.123 diff --git a/.github/workflows/tps-separate-test.yml b/.github/workflows/tps-separate-test.yml index 560dc02a4d1..1e84691b1bb 100644 --- a/.github/workflows/tps-separate-test.yml +++ b/.github/workflows/tps-separate-test.yml @@ -1,11 +1,9 @@ name: TPS on separate instance -on: - workflow_call: - inputs: - db-image: - required: false - type: string +on: workflow_call + +env: + DB_IMAGE: ${{ vars.DB_IMAGE || 'quay.io/389ds/dirsrv' }} jobs: test: @@ -33,7 +31,7 @@ jobs: run: | tests/bin/ds-container-create.sh cads env: - IMAGE: ${{ inputs.db-image }} + IMAGE: ${{ env.DB_IMAGE }} HOSTNAME: cads.example.com PASSWORD: Secret.123 @@ -77,7 +75,7 @@ jobs: run: | tests/bin/ds-container-create.sh krads env: - IMAGE: ${{ inputs.db-image }} + IMAGE: ${{ env.DB_IMAGE }} HOSTNAME: krads.example.com PASSWORD: Secret.123 @@ -127,7 +125,7 @@ jobs: run: | tests/bin/ds-container-create.sh tksds env: - IMAGE: ${{ inputs.db-image }} + IMAGE: ${{ env.DB_IMAGE }} HOSTNAME: tksds.example.com PASSWORD: Secret.123 @@ -173,7 +171,7 @@ jobs: run: | tests/bin/ds-container-create.sh tpsds env: - IMAGE: ${{ inputs.db-image }} + IMAGE: ${{ env.DB_IMAGE }} HOSTNAME: tpsds.example.com PASSWORD: Secret.123 diff --git a/.github/workflows/tps-tests.yml b/.github/workflows/tps-tests.yml index f59c2524d52..94e5dd4ccdc 100644 --- a/.github/workflows/tps-tests.yml +++ b/.github/workflows/tps-tests.yml @@ -18,33 +18,23 @@ jobs: name: Basic TPS needs: [init, build] uses: ./.github/workflows/tps-basic-test.yml - with: - db-image: ${{ needs.init.outputs.db-image }} tps-separate-test: name: TPS on separate instance needs: [init, build] uses: ./.github/workflows/tps-separate-test.yml - with: - db-image: ${{ needs.init.outputs.db-image }} tps-external-certs-test: name: TPS with external certs needs: [init, build] uses: ./.github/workflows/tps-external-certs-test.yml - with: - db-image: ${{ needs.init.outputs.db-image }} tps-clone-test: name: TPS clone needs: [init, build] uses: ./.github/workflows/tps-clone-test.yml - with: - db-image: ${{ needs.init.outputs.db-image }} tps-hsm-test: name: TPS with HSM needs: [init, build] uses: ./.github/workflows/tps-hsm-test.yml - with: - db-image: ${{ needs.init.outputs.db-image }}