Compare commits
No commits in common. "master" and "dev" have entirely different histories.
@ -4,15 +4,12 @@ jobs:
|
||||
build-images:
|
||||
runs-on: host-arch-x86_64
|
||||
steps:
|
||||
- name: Debug
|
||||
run: echo '${{toJson(gitea)}}'
|
||||
|
||||
- name: Clone repository
|
||||
run: git clone --revision ${{ gitea.sha }} --depth 1 ${{ gitea.server_url }}/${{ gitea.repository }}
|
||||
|
||||
- name: Build GCC container
|
||||
working-directory: test5
|
||||
run: docker build . -f Dockerfile -t local/alpine-gcc-${{gitea.sha}}:latest
|
||||
run: docker build . -f Dockerfile -t local/alpine-gcc-${{gitea.ref_name}}:latest
|
||||
|
||||
run-tests:
|
||||
runs-on: host-arch-x86_64
|
||||
@ -22,13 +19,4 @@ jobs:
|
||||
run: git clone --revision ${{ gitea.sha }} --depth 1 ${{ gitea.server_url }}/${{ gitea.repository }}
|
||||
|
||||
- name: Run tests
|
||||
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
|
||||
run: docker run -it --rm -v ./test5:/app local/alpine-gcc-${{gitea.ref_name}}:latest
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user