mirror of
https://github.com/thelittlerocket/zero-ui.git
synced 2024-11-10 09:02:35 +08:00
ci: add QEMU setup
This commit is contained in:
parent
ead11f11e1
commit
65fb8ec5bb
1 changed files with 7 additions and 0 deletions
7
.github/workflows/main.yml
vendored
7
.github/workflows/main.yml
vendored
|
@ -11,6 +11,10 @@ jobs:
|
|||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@v1
|
||||
|
||||
- name: Prepare zero-ui
|
||||
id: prep_zero-ui
|
||||
run: |
|
||||
|
@ -27,6 +31,7 @@ jobs:
|
|||
- name: Set up Docker Buildx
|
||||
id: buildx
|
||||
uses: docker/setup-buildx-action@v1
|
||||
|
||||
- name: Cache Docker layers
|
||||
uses: actions/cache@v2
|
||||
with:
|
||||
|
@ -38,6 +43,7 @@ jobs:
|
|||
with:
|
||||
username: ${{ secrets.DOCKER_HUB_USERNAME }}
|
||||
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
|
||||
|
||||
- name: Build and push zero-ui
|
||||
id: docker_build_zero-ui
|
||||
uses: docker/build-push-action@v2
|
||||
|
@ -49,6 +55,7 @@ jobs:
|
|||
tags: ${{ steps.prep_zero-ui.outputs.tags }}
|
||||
cache-from: type=local,src=/tmp/.buildx-cache
|
||||
cache-to: type=local,dest=/tmp/.buildx-cache
|
||||
|
||||
- name: Build and push zerotier-controller
|
||||
id: docker_build_zerotier-controller
|
||||
uses: docker/build-push-action@v2
|
||||
|
|
Loading…
Reference in a new issue