Skip to content

Commit fa187fa

Browse files
committed
ci(gitea): Add Config check
ref: #33 closes #34
1 parent f10faaf commit fa187fa

File tree

1 file changed

+47
-0
lines changed

1 file changed

+47
-0
lines changed
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
---
2+
3+
name: 'Test'
4+
5+
6+
on:
7+
push:
8+
branches:
9+
- '**'
10+
11+
env:
12+
# ACTIONS_RUNNER_DEBUG: "true"
13+
# ACTIONS_STEP_DEBUG: "true"
14+
GITHUB_TOKEN: ${{ secrets.WORKFLOW_TOKEN }}
15+
16+
17+
jobs:
18+
19+
bump:
20+
name: 'Config'
21+
if: github.event.commits[0].author.name != 'nfc-bot'
22+
runs-on: ubuntu-latest
23+
steps:
24+
25+
26+
- name: Checkout Code
27+
if: ${{ github.ref_name != 'master' }}
28+
uses: http://${{ secrets.ACTIONS_TOKEN_RO }}@gitea-http.git.svc:3000/actions/checkout@v4
29+
with:
30+
fetch-depth: 0
31+
fetch-tags: true
32+
token: ${{ secrets.WORKFLOW_TOKEN }}
33+
34+
35+
- name: Docker Build
36+
shell: bash
37+
run: |
38+
docker build . \
39+
--tag nofusscompuding/bind:dev
40+
41+
42+
- name: Test Conf
43+
shell: bash
44+
run: |
45+
docker run -t --rm \
46+
nofusscompuding/bind:dev \
47+
sh -c 'named-checkconf -z'

0 commit comments

Comments
 (0)