Create readme.md #1
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: Docker Image CI | |
on: | |
push: | |
branches: [ "main" ] | |
paths: | |
- "docker/**" # Only trigger if changes are in the client folder | |
jobs: | |
build-and-push: | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout code | |
uses: actions/checkout@v2 | |
- name: Log in azure | |
uses: azure/login@v1 | |
with: | |
client-id: ${{ secrets.AZURE_CLIENT_ID }} | |
tenant-id: ${{ secrets.AZURE_TENANT_ID }} | |
client-secret: ${{ secrets.AZURE_CLIENT_SECRET }} | |
- name: Log in to Azure Container Registry | |
uses: azure/docker-login@v1 | |
with: | |
login-server: adaptiveflow.azurecr.io | |
username: ${{ secrets.AZURE_REGISTRY_USERNAME }} | |
password: ${{ secrets.AZURE_REGISTRY_PASSWORD }} | |
- name: Build and Push Docker Image | |
run: | | |
docker build -t adaptiveflow.azurecr.io/adaptive-flow docker | |
docker push adaptiveflow.azurecr.io/adaptive-flow:latest | |