new issue #1
@ -1,15 +1,18 @@
|
||||
on: [push]
|
||||
on: [push, workflow_dispatch]
|
||||
|
||||
jobs:
|
||||
build-images:
|
||||
runs-on: host-arch-x86_64
|
||||
steps:
|
||||
- name: Debug print
|
||||
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:latest
|
||||
run: docker build . -f Dockerfile -t local/alpine-gcc-${{gitea.ref_name}}:latest
|
||||
|
||||
run-tests:
|
||||
runs-on: host-arch-x86_64
|
||||
@ -22,4 +25,4 @@ jobs:
|
||||
- run: ls -lh test5
|
||||
|
||||
- name: Run tests
|
||||
run: docker run -it --rm -v ./test5:/app local/alpine-gcc: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