.
This commit is contained in:
@@ -8,6 +8,18 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
checkout-code:
|
checkout-code:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
|
||||||
|
- name: build git runner
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
ls ${{gitea.workspace}} -lah
|
||||||
|
docker build ${{gitea.workspace}}/services/git-runner homesrv/git-runner
|
||||||
|
|
||||||
|
ansible-playbook:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
container:
|
||||||
|
image: homesrv/git-runner
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
@@ -16,23 +28,6 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
ls ${{gitea.workspace}} -lah
|
ls ${{gitea.workspace}} -lah
|
||||||
|
|
||||||
ansible-playbook:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
container:
|
|
||||||
image: librespace/ansible
|
|
||||||
volumes:
|
|
||||||
- ${{gitea.workspace}}/ansible:/ansible
|
|
||||||
steps:
|
|
||||||
- name: ls
|
|
||||||
shell: bash
|
|
||||||
run: |
|
|
||||||
ls ${{gitea.workspace}} -lah
|
|
||||||
ls /ansible -lah
|
|
||||||
# run: |
|
|
||||||
# ls
|
|
||||||
# - name: ls
|
|
||||||
# run: |
|
|
||||||
# ls -lah
|
|
||||||
|
|
||||||
|
|
||||||
# - name: Install Ansible
|
# - name: Install Ansible
|
||||||
|
|||||||
3
services/git-runner/Dockerfile
Normal file
3
services/git-runner/Dockerfile
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
FROM gitea/act_runner:latest
|
||||||
|
RUN apt-get update && apt-get install -y ansible
|
||||||
|
|
||||||
Reference in New Issue
Block a user