Skip to content

Commit

Permalink
add cd action (apache#275)
Browse files Browse the repository at this point in the history
  • Loading branch information
gxthrj authored Jun 22, 2020
1 parent f992efb commit 15d9365
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/api_cd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: API CD

on:
push:
branches:
- master
- cd
pull_request:
branches:
- master

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- uses: Azure/docker-login@v1
with:
login-server: apisixacr.azurecr.cn
username: ${{ secrets.REGISTRY_USERNAME }}
password: ${{ secrets.REGISTRY_PASSWORD }}

- run: |
cd ./api
docker build . -t apisixacr.azurecr.cn/manager-api:${{ github.sha }}
docker push apisixacr.azurecr.cn/manager-api:${{ github.sha }}

0 comments on commit 15d9365

Please sign in to comment.