зеркало из https://github.com/Azure/aks-canipull.git
Merge branch 'main' of github.com:Azure/aks-canipull into addMCRPipeline
This commit is contained in:
Коммит
bd81ea9f55
|
@ -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
|
Загрузка…
Ссылка в новой задаче