From e5b129a67fa9e3c707b3abe02e2c57c53239e677 Mon Sep 17 00:00:00 2001 From: princegupta1131 <114015020+princegupta1131@users.noreply.github.com> Date: Thu, 13 Jun 2024 15:13:22 +0530 Subject: [PATCH] ED-4000 feat: Github actions instead of Jenkins-test-sonar-fix --- .github/workflows/build-upload-artifact.yml | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build-upload-artifact.yml b/.github/workflows/build-upload-artifact.yml index 6592236074e..4da9fe25b1c 100644 --- a/.github/workflows/build-upload-artifact.yml +++ b/.github/workflows/build-upload-artifact.yml @@ -48,12 +48,17 @@ jobs: password: ${{ secrets.DOCKER_PASSWORD }} - name: Push Docker Image - uses: docker/build-push-action@v4 - with: - context: . - file: ./Dockerfile # Path to your Dockerfile - push: true - tags: ${{ secrets.DOCKER_USERNAME }}/my-app:${{ env.build_tag }} + run: | + docker tag my-app:${{ env.build_tag }} ${{ secrets.DOCKER_USERNAME }}/my-app:${{ env.build_tag }} + docker push ${{ secrets.DOCKER_USERNAME }}/my-app:${{ env.build_tag }} + + # - name: Push Docker Image + # uses: docker/build-push-action@v4 + # with: + # context: . + # file: ./Dockerfile # Path to your Dockerfile + # push: true + # tags: ${{ secrets.DOCKER_USERNAME }}/my-app:${{ env.build_tag }} - name: Archive Artifacts uses: actions/upload-artifact@v2