Skip to content

Commit

Permalink
ED-4000 feat: Github actions instead of Jenkins-test-sonar-fix
Browse files Browse the repository at this point in the history
  • Loading branch information
princegupta1131 committed Jun 13, 2024
1 parent 27b821f commit e5b129a
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions .github/workflows/build-upload-artifact.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e5b129a

Please sign in to comment.