You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by ju...@apache.org on 2020/06/22 06:09:15 UTC
[incubator-apisix-dashboard] branch master updated: add cd action
(#275)
This is an automated email from the ASF dual-hosted git repository.
juzhiyuan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-apisix-dashboard.git
The following commit(s) were added to refs/heads/master by this push:
new 15d9365 add cd action (#275)
15d9365 is described below
commit 15d936577d796226d5163af36d92160e693cbcdb
Author: kv <gx...@163.com>
AuthorDate: Mon Jun 22 14:06:19 2020 +0800
add cd action (#275)
---
.github/workflows/api_cd.yml | 27 +++++++++++++++++++++++++++
1 file changed, 27 insertions(+)
diff --git a/.github/workflows/api_cd.yml b/.github/workflows/api_cd.yml
new file mode 100644
index 0000000..528d8ad
--- /dev/null
+++ b/.github/workflows/api_cd.yml
@@ -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 }}
\ No newline at end of file