speedup pull request tests
This commit is contained in:
parent
5dacbc0c76
commit
0138c8b4fd
38
.github/workflows/tests.yaml
vendored
38
.github/workflows/tests.yaml
vendored
@ -3,7 +3,7 @@ on:
|
|||||||
pull_request:
|
pull_request:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
buildx:
|
build-amd64:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
-
|
-
|
||||||
@ -31,6 +31,24 @@ jobs:
|
|||||||
--output "type=image,push=false" \
|
--output "type=image,push=false" \
|
||||||
--tag albertoxamin/bang:test \
|
--tag albertoxamin/bang:test \
|
||||||
--file ./Dockerfile ./
|
--file ./Dockerfile ./
|
||||||
|
build-arm64:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
-
|
||||||
|
name: Checkout
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
-
|
||||||
|
name: Set up Docker Buildx
|
||||||
|
uses: crazy-max/ghaction-docker-buildx@v3
|
||||||
|
-
|
||||||
|
name: Cache Docker layers
|
||||||
|
uses: actions/cache@v3
|
||||||
|
id: cache
|
||||||
|
with:
|
||||||
|
path: /tmp/.buildx-cache
|
||||||
|
key: ${{ runner.os }}-buildx-${{ github.sha }}
|
||||||
|
restore-keys: |
|
||||||
|
${{ runner.os }}-buildx-
|
||||||
-
|
-
|
||||||
name: Docker Buildx (test build arm64)
|
name: Docker Buildx (test build arm64)
|
||||||
run: |
|
run: |
|
||||||
@ -41,6 +59,24 @@ jobs:
|
|||||||
--output "type=image,push=false" \
|
--output "type=image,push=false" \
|
||||||
--tag albertoxamin/bang:test \
|
--tag albertoxamin/bang:test \
|
||||||
--file ./Dockerfile ./
|
--file ./Dockerfile ./
|
||||||
|
build-armv-7:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
-
|
||||||
|
name: Checkout
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
-
|
||||||
|
name: Set up Docker Buildx
|
||||||
|
uses: crazy-max/ghaction-docker-buildx@v3
|
||||||
|
-
|
||||||
|
name: Cache Docker layers
|
||||||
|
uses: actions/cache@v3
|
||||||
|
id: cache
|
||||||
|
with:
|
||||||
|
path: /tmp/.buildx-cache
|
||||||
|
key: ${{ runner.os }}-buildx-${{ github.sha }}
|
||||||
|
restore-keys: |
|
||||||
|
${{ runner.os }}-buildx-
|
||||||
-
|
-
|
||||||
name: Docker Buildx (test build armv-7)
|
name: Docker Buildx (test build armv-7)
|
||||||
run: |
|
run: |
|
||||||
|
Loading…
Reference in New Issue
Block a user