Skip to content

Contentious Deployment #13

Contentious Deployment

Contentious Deployment #13

Workflow file for this run

name: Contentious Deployment
on:
# push:
# branches:
# - master
workflow_dispatch:
jobs:
build:
name: Build ${{ matrix.build.tag }}
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
build:
- { path: "./apps/corgiai", tag: "ghcr.io/blazekill/corgiai/app:latest" }
# - { path: "./apps/py-chat", tag: "corgiai/py-chat:latest" }
# - { path: "./apps/py-loader", tag: "corgiai/py-loader:latest" }
# - { path: "./apps/pull-model", tag: "corgiai/pull-model:latest" }
steps:
- uses: actions/checkout@v4
- name: 'Login Github Container Registery'
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v5
with:
push: true
context: ${{ matrix.build.path }}
tags: ${{ matrix.build.tag }}
build-contexts: |
config=./config
deploy:
name: Deploy
runs-on: ubuntu-latest
needs: [build]
# environment:
# url: ${{ steps.deploy-to-webapp.outputs.webapp-url }}
steps:
- name: Deploy To Azure
id: deploy-to-webapp
uses: azure/webapps-deploy@v2
with:
app-name: 'corgiai'
slot-name: 'production'
publish-profile: ${{ secrets.AzureAppService_PublishProfile_1446078158394201bbff30da3cfe1880 }}
images: 'ghcr.io/blazekill/corgiai/app:latest'