Merge branch 'main' of github.com:Azure/aks-canipull into addMCRPipeline

This commit is contained in:
Sam Kreter 2021-01-06 15:53:17 -05:00
Родитель 06e72e1e9e a43455af57
Коммит bd81ea9f55
1 изменённых файлов: 31 добавлений и 0 удалений

31
.github/workflows/docker-image.yml поставляемый Normal file
Просмотреть файл

@ -0,0 +1,31 @@
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: acrpullci.azurecr.io
username: ${{ secrets.ACR_USERNAME }}
password: ${{ secrets.ACR_PASSWORD }}
- name: Push to CI ACR
if: github.event_name == 'push'
run: make docker-push