-
-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
workflows: add support for GitHub Actions
- Loading branch information
Showing
5 changed files
with
194 additions
and
10 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,95 @@ | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
VERSION: | ||
description: 'Version to build' | ||
required: false | ||
type: string | ||
TAG: | ||
description: 'Tag name to use' | ||
required: false | ||
type: string | ||
|
||
env: | ||
VERSION: ${{ inputs.VERSION }} | ||
TAG: ${{ inputs.TAG }} | ||
|
||
jobs: | ||
draft: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Run github-create-draft | ||
run: make github-create-draft | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
docker-build: | ||
needs: [draft] | ||
runs-on: ${{ matrix.runs_on }} | ||
strategy: | ||
matrix: | ||
include: | ||
- runs_on: [self-hosted, Linux, ARM64] | ||
docker_arch: arm64v8 | ||
- runs_on: ubuntu-latest | ||
docker_arch: amd64 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v2 | ||
- name: Login to Docker Hub | ||
uses: docker/login-action@v3 | ||
with: | ||
username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
- name: Run dockerhub for ${{matrix.docker_arch}} | ||
run: make ${{matrix.docker_arch}}-dockerhub | ||
- name: Run deb for ${{matrix.docker_arch}} | ||
run: make ${{matrix.docker_arch}}-deb | ||
- name: Upload deb files | ||
run: make github-upload-all | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
client-build: | ||
needs: [draft] | ||
runs-on: ${{ matrix.runs_on }} | ||
strategy: | ||
matrix: | ||
include: | ||
- runs_on: [self-hosted, Linux, ARM64] | ||
docker_arch: arm64v8 | ||
- runs_on: ubuntu-latest | ||
docker_arch: amd64 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v2 | ||
- name: Run client for ${{matrix.docker_arch}} | ||
run: make ${{matrix.docker_arch}}-client | ||
- name: Upload artifacts | ||
run: make github-upload-all | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
prerelease: | ||
runs-on: ubuntu-latest | ||
needs: [client-build, docker-build] | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Login to Docker Hub | ||
uses: docker/login-action@v3 | ||
with: | ||
username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
- name: Run dockerhub-manifest | ||
run: make dockerhub-manifest | ||
- name: Run client for ${{matrix.docker_arch}} | ||
run: make github-create-prerelease | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_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,52 @@ | ||
on: | ||
push: | ||
branches: | ||
- '*' | ||
paths-ignore: | ||
- '*.md' | ||
- .github/workflows/*.yaml | ||
pull_request: | ||
workflow_dispatch: | ||
inputs: | ||
VERSION: | ||
description: 'Version to build' | ||
required: false | ||
type: string | ||
|
||
env: | ||
VERSION: ${{ inputs.VERSION }} | ||
|
||
jobs: | ||
docker-build: | ||
runs-on: ${{ matrix.runs_on }} | ||
strategy: | ||
matrix: | ||
include: | ||
- runs_on: [self-hosted, Linux, ARM64] | ||
docker_arch: arm64v8 | ||
- runs_on: ubuntu-latest | ||
docker_arch: amd64 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v2 | ||
- name: Run docker-build for ${{matrix.docker_arch}} | ||
run: make ${{matrix.docker_arch}}-docker-build | ||
|
||
client-build: | ||
runs-on: ${{ matrix.runs_on }} | ||
strategy: | ||
matrix: | ||
include: | ||
- runs_on: [self-hosted, Linux, ARM64] | ||
docker_arch: arm64v8 | ||
- runs_on: ubuntu-latest | ||
docker_arch: amd64 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v2 | ||
- name: Run client for ${{matrix.docker_arch}} | ||
run: make ${{matrix.docker_arch}}-client |
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 @@ | ||
on: | ||
workflow_dispatch: | ||
TAG: | ||
description: 'Tag name to use' | ||
required: false | ||
type: string | ||
|
||
env: | ||
TAG: ${{ inputs.TAG }} | ||
|
||
jobs: | ||
release: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Login to Docker Hub | ||
uses: docker/login-action@v3 | ||
with: | ||
username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
- name: Run dockerhub-latest-release | ||
run: make github-latest-release | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_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
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