This repository has been archived by the owner on Oct 21, 2024. It is now read-only.
use browserless/chrome v1 and only build amd64 image #7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and Push to ACR | |
on: | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
jobs: | |
build: | |
name: 'Build and Push to ACR' | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
shell: bash | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Log in to Docker Hub | |
uses: docker/login-action@v3 | |
with: | |
registry: ${{ secrets.DOCKER_REGISTRY_SERVER_URL }} | |
username: ${{ secrets.DOCKER_REGISTRY_SERVER_USERNAME }} | |
password: ${{ secrets.DOCKER_REGISTRY_SERVER_PASSWORD }} | |
- name: Build and push Docker image to ACR | |
run: | | |
docker build -t ${{ secrets.DOCKER_REGISTRY_SERVER_URL }}/kantega-big-agi:latest . | |
docker push ${{ secrets.DOCKER_REGISTRY_SERVER_URL }}/kantega-big-agi:latest | |
- name: Deploy to Azure Web App | |
uses: azure/webapps-deploy@v3 | |
with: | |
app-name: 'kantega-big-agi' | |
publish-profile: ${{ secrets.AZURE_WEBAPP_PUBLISH_PROFILE }} | |
images: '${{ secrets.DOCKER_REGISTRY_SERVER_URL }}/kantega-big-agi:latest' |