Skip to content

Commit

Permalink
TEST
Browse files Browse the repository at this point in the history
Signed-off-by: Rajpal Chauhan <[email protected]>
  • Loading branch information
rajpalc7 committed Jan 19, 2024
1 parent ce2d6d1 commit 8440678
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ env:
GITHUB_IMAGE_REPO: ghcr.io/rajpalc7/dts-endorser-service
OPENSHIFT_IMAGE_REPO: image-registry.apps.silver.devops.gov.bc.ca/4a9599-tools
APP_NAMES: aries-endorser-agent,aries-endorser-db,aries-endorser-backup,aries-endorser-proxy,aries-endorser-api

TAGS: v1 {{ github.sha}}
jobs:
build:
if: (github.repository == 'rajpalc7/dts-endorser-service') || (github.event_name == 'workflow_dispatch')
Expand Down Expand Up @@ -96,7 +96,7 @@ jobs:
# labels: ${{ steps.meta.outputs.labels }}
# cache-from: type=gha
# cache-to: type=gha,mode=max
# if: contains(['aries-endorser-agent','aries-endorser-backup','aries-endorser-api'], ${{ matrix.service }} )
# if: contains(fromJSON(['aries-endorser-agent','aries-endorser-backup','aries-endorser-api']), ${{ matrix.service }} )

- name: Setup and Build
id: build_image
Expand All @@ -106,29 +106,30 @@ jobs:
# Builder image for a java project
builder_image: ${{ matrix.BUILDER_IMAGE }}
image: ghcr.io/rajpalc7/dts-endorser-service/${{ matrix.service }}
tags: ${{ steps.meta.outputs.tags }}
if: contains(['aries-endorser-db'], ${{ matrix.service }} )
tags: ${{ env.TAGS }}
if: contains(fromJson(['aries-endorser-db']), ${{ matrix.service }} )

- name: Push image
id: push
uses: redhat-actions/push-to-registry@v2
with:
tags: "${{ steps.build-image.outputs.image }}:${{ steps.build-image.outputs.tags }}"
tags: ${{ steps.build_image.outputs.tags }}
image: ${{ steps.build_image.outputs.image }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
if: contains(['aries-endorser-db'], ${{ matrix.service }} )
if: contains(fromJSON(['aries-endorser-db']), ${{ matrix.service }} )

- name: Print image url
run: |
echo "registry_path=${{ steps.push.outputs.registry-paths }}"
echo "digest=${{ steps.push.outputs.digest }}"
if: contains(['aries-endorser-db'], ${{ matrix.service }} )
if: contains(fromJson(['aries-endorser-db']), ${{ matrix.service }} )

- name: Display image results
run: |
echo 'imageid=${{ steps.docker_build.outputs.imageid }}'
echo 'digest=${{ steps.docker_build.outputs.digest }}'
if: contains([' aries-endorser-agent','aries-endorser-backup','aries-endorser-api'], ${{ matrix.service }} )
if: contains(fromJSON([' aries-endorser-agent','aries-endorser-backup','aries-endorser-api']), ${{ matrix.service }} )


deploy2dev:
Expand Down

0 comments on commit 8440678

Please sign in to comment.