26 lines
736 B
YAML
26 lines
736 B
YAML
on: [push]
|
|
|
|
jobs:
|
|
build-images:
|
|
runs-on: host-arch-x86_64
|
|
steps:
|
|
- 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:latest
|
|
|
|
run-tests:
|
|
runs-on: host-arch-x86_64
|
|
needs: build-images
|
|
#container: local/alpine-gcc:latest
|
|
steps:
|
|
- name: Clone repository
|
|
run: git clone --revision ${{ gitea.sha }} --depth 1 ${{ gitea.server_url }}/${{ gitea.repository }}
|
|
|
|
- run: ls -lh test5
|
|
|
|
- name: Run tests
|
|
run: docker run -it --rm -v ./test5:/app local/alpine-gcc:latest
|