Skip to content

Commit 1753dda

Browse files
authored
Merge pull request #53 from cytopia/release-0.32
Multi-arch pipeline
2 parents c362b18 + 99c500b commit 1753dda

22 files changed

+552
-608
lines changed

.github/FUNDING.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1+
---
12
github: [cytopia]

.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

.github/workflows/action_branch.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
---
2+
3+
# -------------------------------------------------------------------------------------------------
4+
# Job Name
5+
# -------------------------------------------------------------------------------------------------
6+
name: build
7+
8+
9+
# -------------------------------------------------------------------------------------------------
10+
# When to run
11+
# -------------------------------------------------------------------------------------------------
12+
on:
13+
push:
14+
paths:
15+
- 'Makefile'
16+
- 'Dockerfiles/**'
17+
- 'tests/**'
18+
- '.github/workflows/action*.yml'
19+
- '.github/workflows/params.yml'
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-flavour-arch.yml@master
31+
with:
32+
enabled: true
33+
can_deploy: ${{ github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/') || startsWith(github.ref, 'refs/heads/release-') }}
34+
matrix: ${{ needs.params.outputs.matrix }}
35+
refs: ${{ needs.params.outputs.refs }}
36+
secrets:
37+
dockerhub_username: ${{ secrets.DOCKERHUB_USERNAME }}
38+
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+
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-flavour-arch.yml@master
28+
with:
29+
enabled: true
30+
can_deploy: false
31+
matrix: ${{ needs.params.outputs.matrix }}
32+
refs: ${{ needs.params.outputs.refs }}
33+
secrets:
34+
dockerhub_username: ""
35+
dockerhub_password: ""

.github/workflows/action_schedule.yml

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: 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-flavour-arch.yml@master
28+
with:
29+
enabled: true
30+
can_deploy: true
31+
matrix: ${{ needs.params.outputs.matrix }}
32+
refs: ${{ needs.params.outputs.refs }}
33+
secrets:
34+
dockerhub_username: ${{ secrets.DOCKERHUB_USERNAME }}
35+
dockerhub_password: ${{ secrets.DOCKERHUB_PASSWORD }}

.github/workflows/build.yml

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

.github/workflows/lint.yml

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -19,22 +19,4 @@ on:
1919
# -------------------------------------------------------------------------------------------------
2020
jobs:
2121
lint:
22-
name: "Lint"
23-
runs-on: ubuntu-latest
24-
steps:
25-
# ------------------------------------------------------------
26-
# Setup repository
27-
# ------------------------------------------------------------
28-
- name: Checkout repository
29-
uses: actions/checkout@v2
30-
with:
31-
fetch-depth: 0
32-
33-
# ------------------------------------------------------------
34-
# Lint repository
35-
# ------------------------------------------------------------
36-
- name: Lint workflow
37-
id: vars
38-
run: |
39-
make lint-workflow
40-
22+
uses: devilbox/github-actions/.github/workflows/lint-generic.yml@master

0 commit comments

Comments
 (0)