Skip to content

Commit

Permalink
Merge pull request #11 from devilbox/release-0.9
Browse files Browse the repository at this point in the history
Use include matrix
  • Loading branch information
cytopia authored Mar 4, 2022
2 parents fc72b8c + e247d97 commit a7ec04b
Show file tree
Hide file tree
Showing 23 changed files with 561 additions and 566 deletions.
8 changes: 8 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
version: 2
updates:
# Maintain dependencies for GitHub Actions
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"
12 changes: 12 additions & 0 deletions .github/labels.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# The labels in this file are automatically synced with the repository
# using the micnncim/action-label-syncer action.
---
- name: C-dependency
color: 1abc9c
description: "Category: Dependency"
- name: PR-block
color: 3498db
description: "Pull Request: Do not merge"
- name: PR-merge
color: 3498db
description: "Pull Request: Merge when ready"
33 changes: 33 additions & 0 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
---
name-template: '$RESOLVED_VERSION 🌈'
tag-template: '$RESOLVED_VERSION'
version-template: '$MAJOR.$MINOR'
categories:
- title: '🚀 Features'
labels:
- 'feature'
- 'enhancement'
- title: '🐛 Bug Fixes'
labels:
- 'fix'
- 'bugfix'
- 'bug'
- title: '🧰 Maintenance'
label: 'chore'
change-template: '- $TITLE @$AUTHOR (#$NUMBER)'
change-title-escapes: '\<*_&' # You can add # and @ to disable mentions, and add ` to disable code blocks.
version-resolver:
major:
labels:
- 'major'
minor:
labels:
- 'minor'
patch:
labels:
- 'patch'
default: minor
template: |
## Changes
$CHANGES
39 changes: 39 additions & 0 deletions .github/workflows/action_branch.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
---

# -------------------------------------------------------------------------------------------------
# Job Name
# -------------------------------------------------------------------------------------------------
name: build


# -------------------------------------------------------------------------------------------------
# When to run
# -------------------------------------------------------------------------------------------------
on:
# Runs after merge to master and after tag creation
push:
branches:
- master
- release-*
tags:
- '*'

jobs:

# (1/2) Determine repository params
params:
uses: ./.github/workflows/params.yml

# (2/2) Build
docker:
needs: [params]
uses: devilbox/github-actions/.github/workflows/docker-name-version-arch.yml@master
with:
enabled: true
can_deploy: true
name: ${{ needs.params.outputs.name }}
matrix: ${{ needs.params.outputs.matrix }}
refs: ${{ needs.params.outputs.refs }}
secrets:
dockerhub_username: ${{ secrets.DOCKERHUB_USERNAME }}
dockerhub_password: ${{ secrets.DOCKERHUB_PASSWORD }}
35 changes: 35 additions & 0 deletions .github/workflows/action_pull_request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
---

# -------------------------------------------------------------------------------------------------
# Job Name
# -------------------------------------------------------------------------------------------------
name: build


# -------------------------------------------------------------------------------------------------
# When to run
# -------------------------------------------------------------------------------------------------
on:
# Runs on Pull Requests
pull_request_target:


jobs:

# (1/2) Determine repository params
params:
uses: ./.github/workflows/params.yml

# (2/2) Build
docker:
needs: [params]
uses: devilbox/github-actions/.github/workflows/docker-name-version-arch.yml@master
with:
enabled: true
can_deploy: false
name: ${{ needs.params.outputs.name }}
matrix: ${{ needs.params.outputs.matrix }}
refs: ${{ needs.params.outputs.refs }}
secrets:
dockerhub_username: ""
dockerhub_password: ""
36 changes: 36 additions & 0 deletions .github/workflows/action_schedule.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
---

# -------------------------------------------------------------------------------------------------
# Job Name
# -------------------------------------------------------------------------------------------------
name: nightly


# -------------------------------------------------------------------------------------------------
# When to run
# -------------------------------------------------------------------------------------------------
on:
# Runs daily
schedule:
- cron: '0 0 * * *'


jobs:

# (1/2) Determine repository params
params:
uses: ./.github/workflows/params.yml

# (2/2) Build
docker:
needs: [params]
uses: devilbox/github-actions/.github/workflows/docker-name-version-arch.yml@master
with:
enabled: true
can_deploy: true
name: ${{ needs.params.outputs.name }}
matrix: ${{ needs.params.outputs.matrix }}
refs: ${{ needs.params.outputs.refs }}
secrets:
dockerhub_username: ${{ secrets.DOCKERHUB_USERNAME }}
dockerhub_password: ${{ secrets.DOCKERHUB_PASSWORD }}
178 changes: 0 additions & 178 deletions .github/workflows/build.yml

This file was deleted.

13 changes: 3 additions & 10 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ name: lint
# -------------------------------------------------------------------------------------------------
on:
# Runs on Pull Requests
pull_request:
pull_request_target:


# -------------------------------------------------------------------------------------------------
Expand All @@ -33,13 +33,6 @@ jobs:
# ------------------------------------------------------------
# Lint repository
# ------------------------------------------------------------
- name: Lint Files
- name: Lint
run: |
make lint-files
# ------------------------------------------------------------
# Lint Workflow
# ------------------------------------------------------------
- name: Lint Workflow
run: |
make lint-workflow
make lint
Loading

0 comments on commit a7ec04b

Please sign in to comment.