Skip to content

Commit a7ec04b

Browse files
authored
Merge pull request #11 from devilbox/release-0.9
Use include matrix
2 parents fc72b8c + e247d97 commit a7ec04b

23 files changed

Lines changed: 561 additions & 566 deletions

.github/dependabot.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
version: 2
3+
updates:
4+
# Maintain dependencies for GitHub Actions
5+
- package-ecosystem: "github-actions"
6+
directory: "/"
7+
schedule:
8+
interval: "daily"

.github/labels.yml

Lines changed: 12 additions & 0 deletions
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

Lines changed: 33 additions & 0 deletions
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
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
---
2+
3+
# -------------------------------------------------------------------------------------------------
4+
# Job Name
5+
# -------------------------------------------------------------------------------------------------
6+
name: build
7+
8+
9+
# -------------------------------------------------------------------------------------------------
10+
# When to run
11+
# -------------------------------------------------------------------------------------------------
12+
on:
13+
# Runs after merge to master and after tag creation
14+
push:
15+
branches:
16+
- master
17+
- release-*
18+
tags:
19+
- '*'
20+
21+
jobs:
22+
23+
# (1/2) Determine repository params
24+
params:
25+
uses: ./.github/workflows/params.yml
26+
27+
# (2/2) Build
28+
docker:
29+
needs: [params]
30+
uses: devilbox/github-actions/.github/workflows/docker-name-version-arch.yml@master
31+
with:
32+
enabled: true
33+
can_deploy: true
34+
name: ${{ needs.params.outputs.name }}
35+
matrix: ${{ needs.params.outputs.matrix }}
36+
refs: ${{ needs.params.outputs.refs }}
37+
secrets:
38+
dockerhub_username: ${{ secrets.DOCKERHUB_USERNAME }}
39+
dockerhub_password: ${{ secrets.DOCKERHUB_PASSWORD }}
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
---
2+
3+
# -------------------------------------------------------------------------------------------------
4+
# Job Name
5+
# -------------------------------------------------------------------------------------------------
6+
name: build
7+
8+
9+
# -------------------------------------------------------------------------------------------------
10+
# When to run
11+
# -------------------------------------------------------------------------------------------------
12+
on:
13+
# Runs on Pull Requests
14+
pull_request_target:
15+
16+
17+
jobs:
18+
19+
# (1/2) Determine repository params
20+
params:
21+
uses: ./.github/workflows/params.yml
22+
23+
# (2/2) Build
24+
docker:
25+
needs: [params]
26+
uses: devilbox/github-actions/.github/workflows/docker-name-version-arch.yml@master
27+
with:
28+
enabled: true
29+
can_deploy: false
30+
name: ${{ needs.params.outputs.name }}
31+
matrix: ${{ needs.params.outputs.matrix }}
32+
refs: ${{ needs.params.outputs.refs }}
33+
secrets:
34+
dockerhub_username: ""
35+
dockerhub_password: ""
Lines changed: 36 additions & 0 deletions
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

Lines changed: 0 additions & 178 deletions
This file was deleted.

.github/workflows/lint.yml

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ name: lint
1111
# -------------------------------------------------------------------------------------------------
1212
on:
1313
# Runs on Pull Requests
14-
pull_request:
14+
pull_request_target:
1515

1616

1717
# -------------------------------------------------------------------------------------------------
@@ -33,13 +33,6 @@ jobs:
3333
# ------------------------------------------------------------
3434
# Lint repository
3535
# ------------------------------------------------------------
36-
- name: Lint Files
36+
- name: Lint
3737
run: |
38-
make lint-files
39-
40-
# ------------------------------------------------------------
41-
# Lint Workflow
42-
# ------------------------------------------------------------
43-
- name: Lint Workflow
44-
run: |
45-
make lint-workflow
38+
make lint

0 commit comments

Comments
 (0)