-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from devilbox/release-0.4
Multi-arch images
- Loading branch information
Showing
22 changed files
with
544 additions
and
221 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
--- | ||
|
||
# ------------------------------------------------------------------------------------------------- | ||
# Job Name | ||
# ------------------------------------------------------------------------------------------------- | ||
name: build | ||
|
||
|
||
# ------------------------------------------------------------------------------------------------- | ||
# When to run | ||
# ------------------------------------------------------------------------------------------------- | ||
on: | ||
push: | ||
|
||
|
||
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-flavour-arch.yml@master | ||
with: | ||
enabled: true | ||
can_deploy: ${{ github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/') || startsWith(github.ref, 'refs/heads/release-') }} | ||
matrix: ${{ needs.params.outputs.matrix }} | ||
refs: ${{ needs.params.outputs.refs }} | ||
secrets: | ||
dockerhub_username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
dockerhub_password: ${{ secrets.DOCKERHUB_PASSWORD }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
--- | ||
|
||
# ------------------------------------------------------------------------------------------------- | ||
# Job Name | ||
# ------------------------------------------------------------------------------------------------- | ||
name: build | ||
|
||
|
||
# ------------------------------------------------------------------------------------------------- | ||
# When to run | ||
# ------------------------------------------------------------------------------------------------- | ||
on: | ||
pull_request: | ||
|
||
|
||
jobs: | ||
|
||
# (1/2) Determine repository params | ||
params: | ||
uses: ./.github/workflows/params.yml | ||
# Only run for forks (contributor) | ||
if: github.event.pull_request.head.repo.fork | ||
|
||
# (2/2) Build | ||
docker: | ||
needs: [params] | ||
uses: devilbox/github-actions/.github/workflows/docker-name-version-flavour-arch.yml@master | ||
with: | ||
enabled: true | ||
can_deploy: false | ||
matrix: ${{ needs.params.outputs.matrix }} | ||
refs: ${{ needs.params.outputs.refs }} | ||
secrets: | ||
dockerhub_username: "" | ||
dockerhub_password: "" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
--- | ||
|
||
# ------------------------------------------------------------------------------------------------- | ||
# 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-flavour-arch.yml@master | ||
with: | ||
enabled: true | ||
can_deploy: true | ||
matrix: ${{ needs.params.outputs.matrix }} | ||
refs: ${{ needs.params.outputs.refs }} | ||
secrets: | ||
dockerhub_username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
dockerhub_password: ${{ secrets.DOCKERHUB_PASSWORD }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
--- | ||
|
||
# ------------------------------------------------------------------------------------------------- | ||
# Job Name | ||
# ------------------------------------------------------------------------------------------------- | ||
name: lint | ||
|
||
|
||
# ------------------------------------------------------------------------------------------------- | ||
# When to run | ||
# ------------------------------------------------------------------------------------------------- | ||
on: | ||
# Runs on Pull Requests | ||
pull_request: | ||
|
||
|
||
# ------------------------------------------------------------------------------------------------- | ||
# What to run | ||
# ------------------------------------------------------------------------------------------------- | ||
jobs: | ||
lint: | ||
uses: devilbox/github-actions/.github/workflows/lint-generic.yml@master |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
--- | ||
|
||
# ------------------------------------------------------------------------------------------------- | ||
# Job Name | ||
# ------------------------------------------------------------------------------------------------- | ||
name: params | ||
|
||
|
||
# ------------------------------------------------------------------------------------------------- | ||
# Custom Variables | ||
# ------------------------------------------------------------------------------------------------- | ||
env: | ||
MATRIX: >- | ||
[ | ||
{ | ||
"NAME": "ngrok", | ||
"VERSION": ["2"], | ||
"FLAVOUR": ["latest", "stretch", "alpine"], | ||
"ARCH": ["linux/amd64", "linux/386", "linux/arm64"] | ||
} | ||
] | ||
# ------------------------------------------------------------------------------------------------- | ||
# When to run | ||
# ------------------------------------------------------------------------------------------------- | ||
on: | ||
workflow_call: | ||
outputs: | ||
matrix: | ||
description: "The determined version matrix" | ||
value: ${{ jobs.params.outputs.matrix }} | ||
refs: | ||
description: "The determined git ref matrix (only during scheduled run)" | ||
value: ${{ jobs.params.outputs.refs }} | ||
|
||
jobs: | ||
params: | ||
runs-on: ubuntu-latest | ||
|
||
outputs: | ||
matrix: ${{ steps.set-matrix.outputs.matrix }} | ||
refs: ${{ steps.set-refs.outputs.matrix }} | ||
|
||
steps: | ||
- name: "[Set-Output] Matrix" | ||
id: set-matrix | ||
run: | | ||
echo "::set-output name=matrix::$( echo '${{ env.MATRIX }}' | jq -M -c )" | ||
- name: "[Set-Output] Matrix 'Refs' (master branch and latest tag)" | ||
id: set-refs | ||
uses: cytopia/git-ref-matrix-action@v0.1.4 | ||
with: | ||
repository_default_branch: master | ||
branches: master | ||
num_latest_tags: 1 | ||
if: github.event_name == 'schedule' | ||
|
||
- name: "[DEBUG] Show settings'" | ||
run: | | ||
echo 'Matrix' | ||
echo '--------------------' | ||
echo '${{ steps.set-matrix.outputs.matrix }}' | ||
echo | ||
echo 'Matrix: Refs' | ||
echo '--------------------' | ||
echo '${{ steps.set-matrix-refs.outputs.matrix }}' | ||
echo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
--- | ||
name: Release Drafter | ||
|
||
on: | ||
push: | ||
# branches to consider in the event; optional, defaults to all | ||
branches: | ||
- master | ||
|
||
jobs: | ||
update_release_draft: | ||
runs-on: ubuntu-latest | ||
steps: | ||
# Drafts your next Release notes as Pull Requests are merged into "master" | ||
- uses: release-drafter/release-drafter@v5 | ||
with: | ||
publish: true | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.RELEASE_DRAFTER_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
--- | ||
name: Repository | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
paths: | ||
- .github/labels.yml | ||
|
||
jobs: | ||
labels: | ||
name: Labels | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Sync labels | ||
uses: micnncim/action-label-syncer@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
manifest: .github/labels.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,86 +1,2 @@ | ||
# Note: | ||
# To effectively apply the changes you will have | ||
# to re-index the git index (if there are already | ||
# commited files) | ||
# | ||
# $ git rm -r --cached . | ||
# $ git add . | ||
# $ git commit -m ".gitignore index rebuild" | ||
# | ||
|
||
|
||
###################################### | ||
# CUSTOM | ||
###################################### | ||
|
||
|
||
###################################### | ||
# GENERIC | ||
###################################### | ||
|
||
###### std ###### | ||
.lock | ||
*.log | ||
|
||
###### patches/diffs ###### | ||
*.patch | ||
*.diff | ||
*.orig | ||
*.rej | ||
|
||
|
||
###################################### | ||
# Operating Systems | ||
###################################### | ||
|
||
###### OSX ###### | ||
._* | ||
.DS* | ||
.Spotlight-V100 | ||
.Trashes | ||
|
||
###### Windows ###### | ||
Thumbs.db | ||
ehthumbs.db | ||
Desktop.ini | ||
$RECYCLE.BIN/ | ||
*.lnk | ||
*.shortcut | ||
|
||
###################################### | ||
# Editors | ||
###################################### | ||
|
||
###### Sublime ###### | ||
*.sublime-workspace | ||
*.sublime-project | ||
|
||
###### Eclipse ###### | ||
.classpath | ||
.buildpath | ||
.project | ||
.settings/ | ||
|
||
###### Netbeans ###### | ||
/nbproject/ | ||
|
||
###### Intellij IDE ###### | ||
.idea/ | ||
.idea_modules/ | ||
|
||
###### vim ###### | ||
*.swp | ||
*.swo | ||
*.swn | ||
*.swm | ||
*~ | ||
|
||
###### TextMate ###### | ||
.tm_properties | ||
*.tmproj | ||
|
||
###### BBEdit ###### | ||
*.bbprojectd | ||
*.bbproject | ||
|
||
.vagrant | ||
Makefile.docker | ||
Makefile.lint |
Oops, something went wrong.