Skip to content

Commit cf1af58

Browse files
committed
New project structure
1 parent 5997376 commit cf1af58

24 files changed

+388
-657
lines changed

.github/dependabot.yml

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
---
12
version: 2
23
updates:
34
# Maintain dependencies for GitHub Actions

.github/labels.yml

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# The labels in this file are automatically synced with the repository
2+
# using the micnncim/action-label-syncer action.
3+
---
4+
- name: C-dependency
5+
color: 1abc9c
6+
description: "Category: Dependency"
7+
- name: PR-block
8+
color: 3498db
9+
description: "Pull Request: Do not merge"
10+
- name: PR-merge
11+
color: 3498db
12+
description: "Pull Request: Merge when ready"

.github/release-drafter.yml

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
---
2+
name-template: '$RESOLVED_VERSION 🌈'
3+
tag-template: '$RESOLVED_VERSION'
4+
version-template: '$MAJOR.$MINOR'
5+
categories:
6+
- title: '🚀 Features'
7+
labels:
8+
- 'feature'
9+
- 'enhancement'
10+
- title: '🐛 Bug Fixes'
11+
labels:
12+
- 'fix'
13+
- 'bugfix'
14+
- 'bug'
15+
- title: '🧰 Maintenance'
16+
label: 'chore'
17+
change-template: '- $TITLE @$AUTHOR (#$NUMBER)'
18+
change-title-escapes: '\<*_&' # You can add # and @ to disable mentions, and add ` to disable code blocks.
19+
version-resolver:
20+
major:
21+
labels:
22+
- 'major'
23+
minor:
24+
labels:
25+
- 'minor'
26+
patch:
27+
labels:
28+
- 'patch'
29+
default: minor
30+
template: |
31+
## Changes
32+
33+
$CHANGES

.github/workflows/action_branch.yml

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
---
2+
3+
# -------------------------------------------------------------------------------------------------
4+
# Job Name
5+
# -------------------------------------------------------------------------------------------------
6+
name: build
7+
8+
9+
# -------------------------------------------------------------------------------------------------
10+
# When to run
11+
# -------------------------------------------------------------------------------------------------
12+
on:
13+
push:
14+
15+
16+
jobs:
17+
18+
# (1/2) Determine repository params
19+
params:
20+
uses: ./.github/workflows/params.yml
21+
22+
# (2/2) Build
23+
docker:
24+
needs: [params]
25+
uses: devilbox/github-actions/.github/workflows/docker-name-version-arch.yml@master
26+
with:
27+
enabled: true
28+
can_deploy: ${{ github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/') || startsWith(github.ref, 'refs/heads/release-') }}
29+
name: ${{ needs.params.outputs.name }}
30+
matrix: ${{ needs.params.outputs.matrix }}
31+
refs: ${{ needs.params.outputs.refs }}
32+
secrets:
33+
dockerhub_username: ${{ secrets.DOCKERHUB_USERNAME }}
34+
dockerhub_password: ${{ secrets.DOCKERHUB_PASSWORD }}
+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
---
2+
3+
# -------------------------------------------------------------------------------------------------
4+
# Job Name
5+
# -------------------------------------------------------------------------------------------------
6+
name: build
7+
8+
9+
# -------------------------------------------------------------------------------------------------
10+
# When to run
11+
# -------------------------------------------------------------------------------------------------
12+
on:
13+
pull_request:
14+
15+
16+
jobs:
17+
18+
# (1/2) Determine repository params
19+
params:
20+
uses: ./.github/workflows/params.yml
21+
# Only run for forks (contributor)
22+
if: github.event.pull_request.head.repo.fork
23+
24+
# (2/2) Build
25+
docker:
26+
needs: [params]
27+
uses: devilbox/github-actions/.github/workflows/docker-name-version-arch.yml@master
28+
with:
29+
enabled: true
30+
can_deploy: false
31+
name: ${{ needs.params.outputs.name }}
32+
matrix: ${{ needs.params.outputs.matrix }}
33+
refs: ${{ needs.params.outputs.refs }}
34+
secrets:
35+
dockerhub_username: ""
36+
dockerhub_password: ""

.github/workflows/action_schedule.yml

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
---
2+
3+
# -------------------------------------------------------------------------------------------------
4+
# Job Name
5+
# -------------------------------------------------------------------------------------------------
6+
name: nightly
7+
8+
9+
# -------------------------------------------------------------------------------------------------
10+
# When to run
11+
# -------------------------------------------------------------------------------------------------
12+
on:
13+
# Runs daily
14+
schedule:
15+
- cron: '0 0 * * *'
16+
17+
18+
jobs:
19+
20+
# (1/2) Determine repository params
21+
params:
22+
uses: ./.github/workflows/params.yml
23+
24+
# (2/2) Build
25+
docker:
26+
needs: [params]
27+
uses: devilbox/github-actions/.github/workflows/docker-name-version-arch.yml@master
28+
with:
29+
enabled: true
30+
can_deploy: true
31+
name: ${{ needs.params.outputs.name }}
32+
matrix: ${{ needs.params.outputs.matrix }}
33+
refs: ${{ needs.params.outputs.refs }}
34+
secrets:
35+
dockerhub_username: ${{ secrets.DOCKERHUB_USERNAME }}
36+
dockerhub_password: ${{ secrets.DOCKERHUB_PASSWORD }}

.github/workflows/build.yml

-166
This file was deleted.

0 commit comments

Comments
 (0)