Merge pull request #32 from b4tman/update-ci

Update ci
This commit is contained in:
Dmitry Belyaev 2021-10-11 10:16:57 +03:00 committed by GitHub
commit e7d6ab6760
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 21 additions and 4 deletions

View File

@ -14,9 +14,18 @@ jobs:
build:
runs-on: ubuntu-18.04
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Build the Docker image
run: docker build . --file Dockerfile --tag b4tman/armhf-alpine-qemu:$(date +%s)
- uses: actions/checkout@v2
- name: Build image
uses: docker/build-push-action@v2
with:
context: .
push: false
tags: b4tman/armhf-alpine-qemu:test
outputs: type=image,name=b4tman/armhf-alpine-qemu:test,push=false
- name: Test image
env:
DOCKER_BUILDKIT: 0
run: docker build --force-rm -t tmp/test1 -f test/Dockerfile test

8
test/Dockerfile Normal file
View File

@ -0,0 +1,8 @@
FROM b4tman/armhf-alpine-qemu:test
RUN [ "cross-build-start" ]
RUN sh -exc "[ \"armv7l\" = `uname -m` ]"
RUN [ "cross-build-end" ]