From dcd7aa8e1e55cf9b4cce468ef50db2d7d7be0ac1 Mon Sep 17 00:00:00 2001 From: Rajpal Chauhan Date: Tue, 6 Feb 2024 15:45:56 -0800 Subject: [PATCH] testing Signed-off-by: Rajpal Chauhan --- .github/workflows/main.yaml | 68 ++++++++++++++++++------------------- 1 file changed, 34 insertions(+), 34 deletions(-) diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 8f7537b8..08a36218 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -187,42 +187,42 @@ jobs: echo "${{ matrix.service }}_digest=${digest}" >> $GITHUB_OUTPUT cat $GITHUB_OUTPUT - # deploy2dev: - # needs: build - # env: - # ENVIRONMENT: dev - # permissions: - # packages: write - # runs-on: ubuntu-latest - # environment: dev - # strategy: - # # Serialize the deployments - # max-parallel: 1 - # matrix: - # include: - # - service: aries-endorser-db - # - service: aries-endorser-agent - # - service: aries-endorser-backup - # - service: aries-endorser-proxy - # - service: aries-endorser-api + deploy2dev: + needs: build + env: + ENVIRONMENT: dev + permissions: + packages: write + runs-on: ubuntu-latest + environment: dev + strategy: + # Serialize the deployments + max-parallel: 1 + matrix: + include: + - service: aries-endorser-db + - service: aries-endorser-agent + - service: aries-endorser-backup + - service: aries-endorser-proxy + - service: aries-endorser-api - # steps: - # - name: Checkout - # uses: actions/checkout@v4 + steps: + - name: Checkout + uses: actions/checkout@v4 - # - name: Deploy to ${{ env.ENVIRONMENT }} - # uses: ./.github/workflows/actions/deploy - # with: - # environment: ${{ env.ENVIRONMENT }} - # ghcr_token: ${{ secrets.GITHUB_TOKEN }} - # github_image_name: ${{ env.GITHUB_IMAGE_REPO }}${{ matrix.service }} - # image_digest: ${{ needs.build.outputs[format ('{0}_digest', matrix.service)] }} - # openshift_image_name: ${{ env.OPENSHIFT_IMAGE_REPO }}${{ matrix.service }} - # openshift_server_url: ${{ vars.OPENSHIFT_SERVER_URL }} - # namespace: ${{ vars.NAMESPACE }} - # deployment_configuration: ${{ matrix.service }} - # openshift_token: ${{ secrets.OPENSHIFT_TOKEN }} - # rocketchat_webhook: ${{ secrets.ROCKETCHAT_WEBHOOK }} + - name: Deploy to ${{ env.ENVIRONMENT }} + uses: ./.github/workflows/actions/deploy + with: + environment: ${{ env.ENVIRONMENT }} + ghcr_token: ${{ secrets.GITHUB_TOKEN }} + github_image_name: ${{ env.GITHUB_IMAGE_REPO }}${{ matrix.service }} + image_digest: ${{ needs.build.outputs[format ('{0}_digest', matrix.service)] }} + openshift_image_name: ${{ env.OPENSHIFT_IMAGE_REPO }}${{ matrix.service }} + openshift_server_url: ${{ vars.OPENSHIFT_SERVER_URL }} + namespace: ${{ vars.NAMESPACE }} + deployment_configuration: ${{ matrix.service }} + openshift_token: ${{ secrets.OPENSHIFT_TOKEN }} + rocketchat_webhook: ${{ secrets.ROCKETCHAT_WEBHOOK }} # docker pull ghcr.io/bcgov/dts-endorser-service@sha256:57f946ab1053726ac6fcb71c85a98d355e926904ebe26db4798353668b3f6c68