Skip to content

Commit

Permalink
Create main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
SaiBarathR authored Dec 19, 2023
1 parent 178b8d5 commit 0801d57
Showing 1 changed file with 23 additions and 0 deletions.
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: [azureFlow]
pull_request:
branches: [azureFlow]

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 0801d57

Please sign in to comment.