Skip to content

Update snapcraft.yaml #98

Update snapcraft.yaml

Update snapcraft.yaml #98

Workflow file for this run

name: Deploy docker
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Build and push devcontainer
uses: docker/build-push-action@v4
with:
context: .
push: true
target: builder
cache-from: type=gha
cache-to: type=gha,mode=max
tags: ghcr.io/${{ github.repository }}:dev
- name: Build and push
uses: docker/build-push-action@v4
with:
context: .
push: true
tags: ghcr.io/${{ github.repository }}:latest
- name: Log in to Azure
uses: azure/login@v1
with:
creds: ${{ secrets.AZURE_CREDENTIALS }}
- name: Build and deploy Container App
uses: azure/container-apps-deploy-action@v0
with:
imageToDeploy: ghcr.io/${{ github.repository }}:latest
containerAppName: webrtcstreamer
resourceGroup: deploy
targetPort: 8000