Skip to content

Update main.yml

Update main.yml #7

Workflow file for this run

name: Build and Push to ACR
on:
push:
branches:
- 'main'
jobs:
build:
name: 'Build and Push to ACR'
runs-on: ubuntu-latest
env:
DATABASE_URL: 'your_database_url'
defaults:
run:
shell: bash
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Docker Login
uses: docker/login-action@v3
with:
registry: ${{ 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.AZURE_URL }}/incstats:V1
file: Dockerfile
build-args: |
DATABASE_URL=your_database_url