Skip to content

push image to container app #22

push image to container app

push image to container app #22

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:

Check failure on line 17 in .github/workflows/main.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/main.yml

Invalid workflow file

You have an error in your yaml syntax on line 17
- 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:${{ github.sha }}
file: Dockerfile
build-args: |
DATABASE_URL=your_database_url
- name: Redeploy Azure Container App
uses: azure/cli-action@v1
with:
inlineScript: |
az containerapp revision copy --name sbu-inslack-nea-app --resource-group sbu-public-incstats-net-nea-rg --cpu 0.5 --memory 1.0 --image ${{ secrets.AZURE_URL }}/incstats:${{ github.sha }}