hasslesstech ffa906d9cc
All checks were successful
/ build-images (push) Successful in 9s
/ run-tests (push) Successful in 7s
/ cleanup (push) Successful in -1s
1
2026-03-18 20:13:54 +02:00

34 lines
992 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
needs: run-tests
steps:
- name: Remove built container images
if: ${{ always() }}
run: docker image rm local/alpine-gcc-${{gitea.sha}}:latest