From 28d258745149c9ca6cb592194ff263b73419653c Mon Sep 17 00:00:00 2001 From: Rajpal Chauhan Date: Thu, 11 Jan 2024 11:28:44 -0800 Subject: [PATCH] adding additional app names for images Signed-off-by: Rajpal Chauhan --- .github/workflows/main.yaml | 85 +++++++++++++++++++++++++++++++++++++ 1 file changed, 85 insertions(+) diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index be101d62..12057817 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -15,6 +15,26 @@ env: OPENSHIFT_IMAGE_REPO: image-registry.apps.silver.devops.gov.bc.ca/4a9599-tools/ APP_NAME: aries-endorser-agent +env: + GITHUB_IMAGE_REPO: ghcr.io/rajpalc7/dts-endorser-service/ + OPENSHIFT_IMAGE_REPO: image-registry.apps.silver.devops.gov.bc.ca/4a9599-tools/ + APP_NAME: aries-endorser-db + +env: + GITHUB_IMAGE_REPO: ghcr.io/rajpalc7/dts-endorser-service/ + OPENSHIFT_IMAGE_REPO: image-registry.apps.silver.devops.gov.bc.ca/4a9599-tools/ + APP_NAME: aries-endorser-backup + +env: + GITHUB_IMAGE_REPO: ghcr.io/rajpalc7/dts-endorser-service/ + OPENSHIFT_IMAGE_REPO: image-registry.apps.silver.devops.gov.bc.ca/4a9599-tools/ + APP_NAME: aries-endorser-proxy + +env: + GITHUB_IMAGE_REPO: ghcr.io/rajpalc7/dts-endorser-service/ + OPENSHIFT_IMAGE_REPO: image-registry.apps.silver.devops.gov.bc.ca/4a9599-tools/ + APP_NAME: aries-endorser-api + jobs: build: if: (github.repository == 'rajpalc7/dts-endorser-service') || (github.event_name == 'workflow_dispatch') @@ -54,6 +74,71 @@ jobs: type=semver,pattern={{major}} type=sha,value=latest + - name: Prepare docker tags for image + id: meta + uses: docker/metadata-action@v4 + with: + images: ghcr.io/rajpalc7/dts-endorser-service/aries-endorser-db + flavor: | + latest=true + tags: | + type=schedule + type=ref,event=branch + type=ref,event=pr + type=semver,pattern={{version}} + type=semver,pattern={{major}}.{{minor}} + type=semver,pattern={{major}} + type=sha,value=latest + + - name: Prepare docker tags for image + id: meta + uses: docker/metadata-action@v4 + with: + images: ghcr.io/rajpalc7/dts-endorser-service/aries-endorser-backup + flavor: | + latest=true + tags: | + type=schedule + type=ref,event=branch + type=ref,event=pr + type=semver,pattern={{version}} + type=semver,pattern={{major}}.{{minor}} + type=semver,pattern={{major}} + type=sha,value=latest + + - name: Prepare docker tags for image + id: meta + uses: docker/metadata-action@v4 + with: + images: ghcr.io/rajpalc7/dts-endorser-service/aries-endorser-proxy + flavor: | + latest=true + tags: | + type=schedule + type=ref,event=branch + type=ref,event=pr + type=semver,pattern={{version}} + type=semver,pattern={{major}}.{{minor}} + type=semver,pattern={{major}} + type=sha,value=latest + + + - name: Prepare docker tags for image + id: meta + uses: docker/metadata-action@v4 + with: + images: ghcr.io/rajpalc7/dts-endorser-service/aries-endorser-api + flavor: | + latest=true + tags: | + type=schedule + type=ref,event=branch + type=ref,event=pr + type=semver,pattern={{version}} + type=semver,pattern={{major}}.{{minor}} + type=semver,pattern={{major}} + type=sha,value=latest + - name: Build and push Docker image id: docker_build uses: docker/build-push-action@v3