Update buid.yaml

pull/60/head
jujiyfb 2 years ago committed by GitHub
parent e55b8d5376
commit 6d6c50a213
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -16,15 +16,18 @@ jobs:
- 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 --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: Build Docker Backend Server Image
run: docker buildx build -f Dockerfile --platform linux/arm64 . -t austin:local
timeout-minutes: 60
- 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…
Cancel
Save