From ec796fd4c626c8a38d9dae86e738a5604d9590c9 Mon Sep 17 00:00:00 2001 From: aswin-in-philips Date: Wed, 29 Mar 2023 12:40:20 +0530 Subject: [PATCH] test --- .github/workflows/ci.yaml | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 85bb5d69..ec59e41a 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -159,7 +159,8 @@ jobs: echo "PR_IMAGE=${{ env.HSDP_DOCKER_REGISTRY }}/edi-foundation-oauth2-proxy:${pr_tag}" >> "$GITHUB_ENV" echo "prTag=${pr_tag}" >> $GITHUB_OUTPUT echo "betaTag=${beta_tag}" >> $GITHUB_OUTPUT - echo "${{ env.HSDP_DOCKER_REGISTRY }}/edi-foundation-oauth2-proxy:${pr_tag}" > /tmp/output.txt + echo "${pr_tag}" > /tmp/output.txt + echo "${beta_tag}" > /tmp/output2.txt - name: Docker Build run: | @@ -184,14 +185,32 @@ jobs: docker tag ${{ env.PR_IMAGE }} ${{ env.CI_IMAGE }} docker push ${{ env.CI_IMAGE }} + - name: PR Image Artifact + #if: github.event_name == 'pull_request' + uses: actions/upload-artifact@v2 + with: + name: Image tag + path: /tmp/output.txt + if-no-files-found: error + - name: CI Image Artifact #if: github.ref == 'refs/heads/edi-foundation-integration' uses: actions/upload-artifact@v2 with: name: Image tag - path: /tmp/output.txt + path: /tmp/output2.txt if-no-files-found: error + + Output: + needs: [Build] + runs-on: ubuntu-20.04 + steps: + - uses: actions/checkout@v2 + + - name: check output + run: | + echo "${{ needs.Build.outputs.oauth2proxyPRTag }}" # Blackduck: # needs: [Build]