Skip to content

Commit

Permalink
Create deploy.yml
Browse files Browse the repository at this point in the history
deploy app to azure
  • Loading branch information
henrybravo authored Jun 22, 2024
1 parent f9a8d2f commit 6e47032
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Build and Push to ACR
on:
push:
branches:
- 'main'
jobs:
build:
name: 'Build and Push to ACR'
runs-on: ubuntu-latest

defaults:
run:
shell: bash

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Docker Login
uses: azure/docker-login@v1
with:
login-server: ${{ secrets.AZURE_URL }}
username: ${{ secrets.ACR_USERNAME }}
password: ${{ secrets.ACR_PASSWORD }}

- name: Build and Push to ACR
uses: docker/build-push-action@v2
with:
push: true
tags: ${{ secrets.IMAGE_TAG }}
file: Dockerfile

0 comments on commit 6e47032

Please sign in to comment.