1
Some checks failed
/ build-images (push) Successful in 9s
/ run-tests (push) Has been cancelled
/ cleanup (push) Has been cancelled

This commit is contained in:
ІО-23 Шмуляр Олег 2026-03-18 20:13:14 +02:00
parent 1b0663fa73
commit a42650be38

View File

@ -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