зеркало из https://github.com/Azure/aks-canipull.git
Create docker-image.yml
This commit is contained in:
Родитель
392833462b
Коммит
a43455af57
|
@ -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
|
Загрузка…
Ссылка в новой задаче