mirror of
https://github.com/gravitl/netmaker.git
synced 2025-10-07 12:26:12 +08:00
split test by arch
This commit is contained in:
parent
7e8fd2e26e
commit
12c166c3bb
1 changed files with 15 additions and 3 deletions
18
.github/workflows/publish-docker.yml
vendored
18
.github/workflows/publish-docker.yml
vendored
|
@ -40,15 +40,27 @@ jobs:
|
||||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||||
-
|
-
|
||||||
name: Build and export to Docker
|
name: Build x86 and export to Docker
|
||||||
uses: docker/build-push-action@v2
|
uses: docker/build-push-action@v2
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
load: true
|
load: true
|
||||||
platforms: linux/amd64,linux/arm64
|
platforms: linux/amd64
|
||||||
tags: ${{ env.TAG }}
|
tags: ${{ env.TAG }}
|
||||||
-
|
-
|
||||||
name: Test
|
name: Test x86
|
||||||
|
run: |
|
||||||
|
docker run --rm --entrypoint apk add file; file netmaker ${{ env.TAG }}
|
||||||
|
-
|
||||||
|
name: Build arm and export to Docker
|
||||||
|
uses: docker/build-push-action@v2
|
||||||
|
with:
|
||||||
|
context: .
|
||||||
|
load: true
|
||||||
|
platforms: linux/arm64
|
||||||
|
tags: ${{ env.TAG }}
|
||||||
|
-
|
||||||
|
name: Test arm
|
||||||
run: |
|
run: |
|
||||||
docker run --rm --entrypoint apk add file; file netmaker ${{ env.TAG }}
|
docker run --rm --entrypoint apk add file; file netmaker ${{ env.TAG }}
|
||||||
-
|
-
|
||||||
|
|
Loading…
Add table
Reference in a new issue