From 86490c1478a3ddb31cf003c4771dd0ef8d53f488 Mon Sep 17 00:00:00 2001 From: aswin-in-philips Date: Wed, 29 Mar 2023 12:13:06 +0530 Subject: [PATCH] test --- .github/workflows/ci.yaml | 55 ++++++++++++++++++--------------------- 1 file changed, 25 insertions(+), 30 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index ea213fc9..85bb5d69 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -160,43 +160,38 @@ jobs: 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 - - - name: Image tag + + - name: Docker Build run: | - cat /tmp/output.txt + make docker - - # - name: Docker Build - # run: | - # make docker + - name: Docker login + run: | + docker login --username '${{ secrets.DOCKER_USER }}' --password '${{ secrets.DOCKER_PSWD }}' '${{ secrets.DOCKER_REPO }}' - # - name: Docker login - # run: | - # docker login --username '${{ secrets.DOCKER_USER }}' --password '${{ secrets.DOCKER_PSWD }}' '${{ secrets.DOCKER_REPO }}' - - # - name: Docker tag - # run: | - # docker tag '${{ secrets.DOCKER_REPO }}'/oauth2-proxy:latest ${{ env.PR_IMAGE }} + - name: Docker tag + run: | + docker tag '${{ secrets.DOCKER_REPO }}'/oauth2-proxy:latest ${{ env.PR_IMAGE }} - # - name: PR Image Docker Push - # #if: github.event_name == 'pull_request' - # run: | - # docker push ${{ env.PR_IMAGE }} + - name: PR Image Docker Push + #if: github.event_name == 'pull_request' + run: | + docker push ${{ env.PR_IMAGE }} - # - name: Docker Push - # if: github.ref == 'refs/heads/edi-foundation-integration' - # run: | - # docker tag ${{ env.PR_IMAGE }} ${{ env.CI_IMAGE }} - # docker push ${{ env.CI_IMAGE }} + - name: Docker Push + if: github.ref == 'refs/heads/edi-foundation-integration' + run: | + docker tag ${{ env.PR_IMAGE }} ${{ env.CI_IMAGE }} + docker push ${{ env.CI_IMAGE }} - # - 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 - # 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 + if-no-files-found: error # Blackduck: # needs: [Build]