Skip to content

Commit

Permalink
Update Docker image CI workflow and add main workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
SaiBarathR committed Dec 19, 2023
1 parent 178b8d5 commit 96768a8
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 18 deletions.
18 changes: 0 additions & 18 deletions .github/workflows/docker-image.yml

This file was deleted.

23 changes: 23 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Build a Docker image and Push it to ACR

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: azure/docker-login@v1
with:
login-server: ${{ secrets.ACR_ENDPOINT }}
username: ${{ secrets.ACR_USERNAME }}
password: ${{ secrets.ACR_PASSWORD }}
- run: |
docker build . -t ${{ secrets.ACR_ENDPOINT }}/mh-service:${{ github.sha }}
docker push ${{ secrets.ACR_ENDPOINT }}/mh-service:${{ github.sha }}

0 comments on commit 96768a8

Please sign in to comment.