1
This commit is contained in:
parent
1b0663fa73
commit
a42650be38
@ -1,4 +1,4 @@
|
|||||||
on: [push, pull_request, workflow_dispatch]
|
on: [push, workflow_dispatch]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-images:
|
build-images:
|
||||||
@ -12,7 +12,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Build GCC container
|
- name: Build GCC container
|
||||||
working-directory: test5
|
working-directory: test5
|
||||||
run: docker build . -f Dockerfile -t local/alpine-gcc-${{gitea.ref_name}}:latest
|
run: docker build . -f Dockerfile -t local/alpine-gcc-${{gitea.sha}}:latest
|
||||||
|
|
||||||
run-tests:
|
run-tests:
|
||||||
runs-on: host-arch-x86_64
|
runs-on: host-arch-x86_64
|
||||||
@ -22,4 +22,10 @@ jobs:
|
|||||||
run: git clone --revision ${{ gitea.sha }} --depth 1 ${{ gitea.server_url }}/${{ gitea.repository }}
|
run: git clone --revision ${{ gitea.sha }} --depth 1 ${{ gitea.server_url }}/${{ gitea.repository }}
|
||||||
|
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: docker run -it --rm -v ./test5:/app local/alpine-gcc-${{gitea.ref_name}}:latest
|
run: docker run -it --rm -v ./test5:/app local/alpine-gcc-${{gitea.sha}}:latest
|
||||||
|
|
||||||
|
cleanup:
|
||||||
|
runs-on: host-arch-x86_64
|
||||||
|
steps:
|
||||||
|
- name: Remove built container images
|
||||||
|
run: docker image rm local/alpine-gcc-${{gitea.sha}}:latest
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user