aks-canipull/.github/workflows/docker-image.yml

32 строки
663 B
YAML

name: Docker Image CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
env:
IMG: acrcanipullci.azurecr.io/canipull:latest
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Build the Docker image
run: make docker-build
- name: Azure Container Registry Login
if: github.event_name == 'push'
uses: Azure/docker-login@v1
with:
login-server: acrcanipullci.azurecr.io
username: ${{ secrets.ACR_USERNAME }}
password: ${{ secrets.ACR_PASSWORD }}
- name: Push to CI ACR
if: github.event_name == 'push'
run: make docker-push