mirror of https://github.com/ZhongFuCheng3y/austin
parent
3fb0927891
commit
aeda584f03
@ -1,33 +0,0 @@
|
|||||||
name: Build Docker Image
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches: [ master ]
|
|
||||||
pull_request:
|
|
||||||
branches: [ master ]
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
timeout-minutes: 90
|
|
||||||
steps:
|
|
||||||
- name: Checkout Code
|
|
||||||
uses: actions/checkout@v2
|
|
||||||
- name: Compile And Install Modules
|
|
||||||
run: mvn clean install -DskipTests=true -q
|
|
||||||
timeout-minutes: 10
|
|
||||||
- name: Prepare Docker Cross Compile
|
|
||||||
run: docker run --rm --privileged docker/binfmt:a7996909642ee92942dcd6cff44b9b95f08dad64 && docker buildx create --name multi-arch-builder --node multi-arch-builder0 --use --name multi-arch-builder
|
|
||||||
timeout-minutes: 10
|
|
||||||
- name: Build Docker Backend Server Image
|
|
||||||
run: docker buildx build -f Dockerfile --platform linux/arm64 . -t austin:local --load
|
|
||||||
timeout-minutes: 60
|
|
||||||
- name: Login To Huawei Cloud Docker Registry
|
|
||||||
uses: docker/login-action@v1
|
|
||||||
with:
|
|
||||||
registry: swr.cn-south-1.myhuaweicloud.com
|
|
||||||
username: ${{ secrets.DOCKER_USER }}
|
|
||||||
password: ${{ secrets.DOCKER_PASSWD }}
|
|
||||||
- name: Push Backend Server Docker Image
|
|
||||||
run: docker tag austin:local swr.cn-south-1.myhuaweicloud.com/juji-dev/austin:$(git rev-parse --short HEAD) && docker push swr.cn-south-1.myhuaweicloud.com/juji-dev/austin:$(git rev-parse --short HEAD)
|
|
||||||
timeout-minutes: 10
|
|
Loading…
Reference in new issue