Skip to content

Commit

Permalink
Replace BASE64_DATABASE with DB_IMAGE
Browse files Browse the repository at this point in the history
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
  • Loading branch information
edewata committed Oct 19, 2023
1 parent 634cc04 commit 3fd3031
Show file tree
Hide file tree
Showing 109 changed files with 494 additions and 882 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/PKICertImport-test.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
12 changes: 5 additions & 7 deletions .github/workflows/acme-certbot-test.yml
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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

Expand Down
10 changes: 4 additions & 6 deletions .github/workflows/acme-container-test.yml
Original file line number Diff line number Diff line change
@@ -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
Expand Down
12 changes: 5 additions & 7 deletions .github/workflows/acme-postgresql-test.yml
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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

Expand Down
12 changes: 5 additions & 7 deletions .github/workflows/acme-switchover-test.yml
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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

Expand Down
8 changes: 0 additions & 8 deletions .github/workflows/acme-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
12 changes: 5 additions & 7 deletions .github/workflows/ca-admin-user-test.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down Expand Up @@ -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

Expand Down
12 changes: 5 additions & 7 deletions .github/workflows/ca-basic-test.yml
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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

Expand Down
16 changes: 7 additions & 9 deletions .github/workflows/ca-clone-hsm-test.yml
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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

Expand Down Expand Up @@ -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

Expand Down Expand Up @@ -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

Expand Down
14 changes: 6 additions & 8 deletions .github/workflows/ca-clone-replicated-ds-test.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down Expand Up @@ -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

Expand Down Expand Up @@ -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

Expand Down
10 changes: 4 additions & 6 deletions .github/workflows/ca-clone-secure-ds-test.yml
Original file line number Diff line number Diff line change
@@ -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
Expand Down
12 changes: 5 additions & 7 deletions .github/workflows/ca-clone-shared-ds-test.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down Expand Up @@ -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

Expand Down
16 changes: 7 additions & 9 deletions .github/workflows/ca-clone-test.yml
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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

Expand Down Expand Up @@ -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

Expand Down Expand Up @@ -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

Expand Down
10 changes: 0 additions & 10 deletions .github/workflows/ca-clone-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Loading

0 comments on commit 3fd3031

Please sign in to comment.