From 067d73f7e0165a9c9496f71db2b42583c32cd9b6 Mon Sep 17 00:00:00 2001 From: Rajpal Chauhan Date: Tue, 12 Mar 2024 14:30:46 -0700 Subject: [PATCH] test Signed-off-by: Rajpal Chauhan --- .github/workflows/main.yaml | 36 +++++++++++++++++++----------------- 1 file changed, 19 insertions(+), 17 deletions(-) diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index f8c1844e..f3680678 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -44,10 +44,12 @@ jobs: - service: aries-endorser-db GIT_REPO_URL: ${{ inputs.service.endoser-db.git_repo_url || 'hyperledger/aries-endorser-service' }} GIT_REF: ${{ inputs.service.endoser-db.git_ref || '' }} - SOURCE_CONTEXT_DIR: docker/wallet/config - SOURCE_IMAGE_REGISTRY: "quay.io/" - SOURCE_IMAGE_NAME: "fedora/postgresql-13" - SOURCE_IMAGE_TAG: "13" + SOURCE_CONTEXT_DIR: ${{ inputs.service.endoser-db.source_context_dir || 'docker/wallet/config' }} + SOURCE_IMAGE_REGISTRY: ${{ inputs.service.endoser-db.source_image_registry || 'quay.io/' }} + SOURCE_IMAGE_NAME: ${{ inputs.service.endoser-db.source_image_name || 'fedora/postgresql-13' }} + SOURCE_IMAGE_TAG: ${{ inputs.service.endoser-db.source_image_tag || '13' }} + REGISTRY_USERNAME_SECRET_NAME: ${{ inputs.service.endoser-db.username_secret_name || '' }} + REGISTRY_PASSWORD_SECRET_NAME: ${{ inputs.service.endoser-db.password_secret_name || '' }} - service: aries-endorser-backup GIT_REPO_URL: BCDevOps/backup-container GIT_REF: 2.5.1 @@ -56,8 +58,8 @@ jobs: SOURCE_IMAGE_REGISTRY: artifacts.developer.gov.bc.ca/docker-remote/ SOURCE_IMAGE_NAME: centos/postgresql-13-centos7 SOURCE_IMAGE_TAG: 20210722-70dc4d3 - REGISTRY_USERNAME_SECRET_NAME: ARTIFACTORY_USERNAME - REGISTRY_PASSWORD_SECRET_NAME: ARTIFACTORY_PASSWORD + REGISTRY_USERNAME_SECRET_NAME: ${{ inputs.service.endoser-backup.username_secret_name || '' }} + REGISTRY_PASSWORD_SECRET_NAME: ${{ inputs.service.endoser-backup.password_secret_name || '' }} - service: aries-endorser-proxy GIT_REF: "" DOCKER_FILE_PATH: Dockerfile # The docker path, file, is the relative path to the docker file from the root of the repo. @@ -65,18 +67,18 @@ jobs: SOURCE_IMAGE_REGISTRY: "artifacts.developer.gov.bc.ca/docker-remote/" SOURCE_IMAGE_NAME: caddy SOURCE_IMAGE_TAG: latest - REGISTRY_USERNAME_SECRET_NAME: ARTIFACTORY_USERNAME - REGISTRY_PASSWORD_SECRET_NAME: ARTIFACTORY_PASSWORD + REGISTRY_USERNAME_SECRET_NAME: ${{ inputs.service.endoser-proxy.username_secret_name || '' }} + REGISTRY_PASSWORD_SECRET_NAME: ${{ inputs.service.endoser-proxy.password_secret_name || '' }} - service: aries-endorser-api - GIT_REPO_URL: hyperledger/aries-endorser-service - GIT_REF: "" - DOCKER_FILE_PATH: Dockerfile.endorser # The docker path, file, is the relative path to the docker file from the root of the repo. - SOURCE_CONTEXT_DIR: endorser # The context dir, context, sets the context for the build. i.e. where the build will source files from - SOURCE_IMAGE_REGISTRY: artifacts.developer.gov.bc.ca/docker-remote/ - SOURCE_IMAGE_NAME: python - SOURCE_IMAGE_TAG: 3.10-slim-buster - REGISTRY_USERNAME_SECRET_NAME: ARTIFACTORY_USERNAME - REGISTRY_PASSWORD_SECRET_NAME: ARTIFACTORY_PASSWORD + GIT_REPO_URL: ${{ inputs.service.endoser-api.git_repo_url || 'hyperledger/aries-endorser-service' }} + GIT_REF: ${{ inputs.service.endoser-api.git_ref || '' }} + DOCKER_FILE_PATH: ${{ inputs.service.endoser-api.git_ref || 'Dockerfile.endorser' }} # The docker path, file, is the relative path to the docker file from the root of the repo. + SOURCE_CONTEXT_DIR: ${{ inputs.service.endoser-api.git_ref || 'endorser' }} # The context dir, context, sets the context for the build. i.e. where the build will source files from + SOURCE_IMAGE_REGISTRY: ${{ inputs.service.endoser-api.git_ref || 'artifacts.developer.gov.bc.ca/docker-remote/' }} + SOURCE_IMAGE_NAME: ${{ inputs.service.endoser-api.git_ref || 'python' }} + SOURCE_IMAGE_TAG: ${{ inputs.service.endoser-api.git_ref || '3.10-slim-buster' }} + REGISTRY_USERNAME_SECRET_NAME: ${{ inputs.service.endoser-api.username_secret_name || '' }} + REGISTRY_PASSWORD_SECRET_NAME: ${{ inputs.service.endoser-api.password_secret_name || '' }} outputs: aries-endorser-agent_digest: ${{ steps.digest.outputs.aries-endorser-agent_digest }} aries-endorser-backup_digest: ${{ steps.digest.outputs.aries-endorser-backup_digest }}