-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of github.com:zhou-fuyi/micro-weather-backend
- Loading branch information
Showing
1 changed file
with
33 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: Micro Weather Service Image Build And Push CI | ||
|
||
on: | ||
push: | ||
branches: | ||
- 'main' | ||
jobs: | ||
docker: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
# setup-qemu 如果您想使用 QEMU 添加仿真支持以便能够针对更多平台进行构建,则 action 会很有用 | ||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v1 | ||
|
||
# setup-buildx-action 将默认使用docker-container 构建器驱动程序创建和引导构建器。非必需 | ||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v1 | ||
|
||
- name: Login to Aliyun DockerHub | ||
uses: docker/login-action@v1 | ||
with: | ||
registry: ${{secrets.ALIYUN_DOCKERHUB_REGISTRY}} | ||
username: ${{ secrets.ALIYUN_DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.ALIYUN_DOCKERHUB_TOKEN }} | ||
|
||
- name: Build and push | ||
uses: docker/build-push-action@v2 | ||
with: | ||
push: true | ||
tags: registry.cn-hangzhou.aliyuncs.com/fui-atlas/micro-weather:latest |