![dependabot[bot]](/assets/img/avatar_default.png)
Bumps [actions/checkout](https://github.com/actions/checkout) from 2 to 4. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v2...v4) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
90 lines
2.6 KiB
YAML
90 lines
2.6 KiB
YAML
name: Test Pull requests
|
|
on:
|
|
pull_request:
|
|
|
|
jobs:
|
|
build-amd64:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
-
|
|
name: Checkout
|
|
uses: actions/checkout@v4
|
|
-
|
|
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 amd64)
|
|
run: |
|
|
docker buildx build \
|
|
--cache-from "type=local,src=/tmp/.buildx-cache" \
|
|
--cache-to "type=local,dest=/tmp/.buildx-cache" \
|
|
--platform linux/amd64 \
|
|
--output "type=image,push=false" \
|
|
--tag albertoxamin/bang:test \
|
|
--file ./Dockerfile ./
|
|
# build-arm64:
|
|
# runs-on: ubuntu-latest
|
|
# steps:
|
|
# -
|
|
# name: Checkout
|
|
# uses: actions/checkout@v4
|
|
# -
|
|
# 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)
|
|
# run: |
|
|
# docker buildx build \
|
|
# --cache-from "type=local,src=/tmp/.buildx-cache" \
|
|
# --cache-to "type=local,dest=/tmp/.buildx-cache" \
|
|
# --platform linux/arm64 \
|
|
# --output "type=image,push=false" \
|
|
# --tag albertoxamin/bang:test \
|
|
# --file ./Dockerfile ./
|
|
build-armv-7:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
-
|
|
name: Checkout
|
|
uses: actions/checkout@v4
|
|
-
|
|
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)
|
|
run: |
|
|
docker buildx build \
|
|
--cache-from "type=local,src=/tmp/.buildx-cache" \
|
|
--cache-to "type=local,dest=/tmp/.buildx-cache" \
|
|
--platform linux/arm/v7 \
|
|
--output "type=image,push=false" \
|
|
--tag albertoxamin/bang:test \
|
|
--file ./Dockerfile ./
|