Skip to content

Hotfix: manually run workflow (#573) #115

Hotfix: manually run workflow (#573)

Hotfix: manually run workflow (#573) #115

Workflow file for this run

name: Docker Image CI
on:
workflow_dispatch:
inputs:
branch:
description: 'The branch to build'
required: true
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Azure Container Registry Login
uses: Azure/docker-login@v1
with:
# Container registry username
username: ${{ secrets.ACR_USERNAME }}
# Container registry password
password: ${{ secrets.ACR_PASSWORD }}
# Container registry server url
login-server: ${{ secrets.ACR_LOGIN_SERVER }}
- uses: actions/checkout@v3
with:
ref: ${{ github.event.inputs.branch }}
- name: Build the Docker image
run:
docker build . --file WebApp.Dockerfile --tag fruoccopublic.azurecr.io/sample-app-aoai-chatgpt:$(date +'%Y-%m-%d')_$GITHUB_RUN_NUMBER;
docker tag fruoccopublic.azurecr.io/sample-app-aoai-chatgpt:$(date +'%Y-%m-%d')_$GITHUB_RUN_NUMBER fruoccopublic.azurecr.io/sample-app-aoai-chatgpt:latest;
docker push fruoccopublic.azurecr.io/sample-app-aoai-chatgpt:$(date +'%Y-%m-%d')_$GITHUB_RUN_NUMBER;
docker push fruoccopublic.azurecr.io/sample-app-aoai-chatgpt:latest;