hasslesstech a42650be38
Some checks failed
/ build-images (push) Successful in 9s
/ run-tests (push) Has been cancelled
/ cleanup (push) Has been cancelled
1
2026-03-18 20:13:14 +02:00

32 lines
943 B
YAML

on: [push, workflow_dispatch]
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-tests:
runs-on: host-arch-x86_64
needs: build-images
steps:
- name: Clone repository
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
steps:
- name: Remove built container images
run: docker image rm local/alpine-gcc-${{gitea.sha}}:latest