Compare commits
8 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| ce0dbdfe7c | |||
| d8ae8cd017 | |||
| 65c6d44a6c | |||
| ffa906d9cc | |||
| a42650be38 | |||
| 1b0663fa73 | |||
| 57482921b7 | |||
| c68f37f00f |
@ -4,12 +4,15 @@ jobs:
|
|||||||
build-images:
|
build-images:
|
||||||
runs-on: host-arch-x86_64
|
runs-on: host-arch-x86_64
|
||||||
steps:
|
steps:
|
||||||
|
- name: Debug
|
||||||
|
run: echo '${{toJson(gitea)}}'
|
||||||
|
|
||||||
- name: Clone repository
|
- name: Clone repository
|
||||||
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: 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
|
||||||
@ -19,4 +22,13 @@ 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
|
||||||
|
needs: run-tests
|
||||||
|
if: ${{ always() }}
|
||||||
|
steps:
|
||||||
|
- name: Remove built container images
|
||||||
|
#if: ${{ always() }}
|
||||||
|
run: docker image rm local/alpine-gcc-${{gitea.sha}}:latest
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user