-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
198 additions
and
8 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
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,41 @@ | ||
name: CD Check Pipeline | ||
|
||
concurrency: | ||
group: cd-check-${{ github.event.pull_request.number || github.ref }} | ||
cancel-in-progress: true | ||
|
||
on: | ||
merge_group: | ||
|
||
pull_request: | ||
branches: | ||
- "release" | ||
- "release/*" | ||
types: | ||
- opened | ||
- synchronize | ||
|
||
jobs: | ||
build-linux-x86_64: | ||
name: "Linux x86_64: Build" | ||
uses: ./.github/workflows/build.yml | ||
with: | ||
os: warp-ubuntu-latest-x64-4x | ||
secrets: | ||
cachix-token: "${{ secrets.CACHIX_AUTH_TOKEN }}" | ||
|
||
build-linux-aarch64: | ||
name: "Linux aarch64: Build" | ||
uses: ./.github/workflows/build.yml | ||
with: | ||
os: warp-ubuntu-latest-arm64-8x | ||
secrets: | ||
cachix-token: "${{ secrets.CACHIX_AUTH_TOKEN }}" | ||
|
||
build-macos-aarch64: | ||
name: "MacOS aarch64: Build" | ||
uses: ./.github/workflows/build.yml | ||
with: | ||
os: warp-macos-latest-arm64-6x | ||
secrets: | ||
cachix-token: "${{ secrets.CACHIX_AUTH_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,20 @@ | ||
name: CD Release Pipeline | ||
|
||
concurrency: | ||
group: cd-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
on: | ||
push: | ||
branches: ["add-cd"] | ||
tags: | ||
- "*/*" | ||
|
||
jobs: | ||
release: | ||
name: "Release sink-mongo" | ||
uses: ./.github/workflows/cd-release.yml | ||
with: | ||
target: sink-mongo | ||
secrets: | ||
cachix-token: "${{ secrets.CACHIX_AUTH_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,100 @@ | ||
name: Release a target | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
target: | ||
required: true | ||
type: string | ||
secrets: | ||
cachix-token: | ||
required: true | ||
|
||
jobs: | ||
# Step 1: build the target for all platforms | ||
|
||
build-linux-x86_64: | ||
name: "Linux x86_64: Build" | ||
uses: ./.github/workflows/build.yml | ||
with: | ||
os: warp-ubuntu-latest-x64-4x | ||
target: ${{ inputs.target }} | ||
secrets: | ||
cachix-token: "${{ secrets.cachix-token }}" | ||
|
||
build-linux-aarch64: | ||
name: "Linux aarch64: Build" | ||
uses: ./.github/workflows/build.yml | ||
with: | ||
os: warp-ubuntu-latest-arm64-8x | ||
target: ${{ inputs.target }} | ||
secrets: | ||
cachix-token: "${{ secrets.cachix-token }}" | ||
|
||
build-macos-aarch64: | ||
name: "MacOS aarch64: Build" | ||
uses: ./.github/workflows/build.yml | ||
with: | ||
os: warp-macos-latest-arm64-6x | ||
target: ${{ inputs.target }} | ||
secrets: | ||
cachix-token: "${{ secrets.cachix-token }}" | ||
|
||
# Step 2a: create release archive for all platforms | ||
|
||
build-linux-x86_64-archive: | ||
name: "Linux x86_64: Build archive" | ||
needs: build-linux-x86_64 | ||
uses: ./.github/workflows/build.yml | ||
with: | ||
os: warp-ubuntu-latest-x64-4x | ||
target: ${{ inputs.target }}-archive | ||
upload_result: true | ||
secrets: | ||
cachix-token: "${{ secrets.cachix-token }}" | ||
|
||
build-linux-aarch64-archive: | ||
name: "Linux aarch64: Build archive" | ||
needs: build-linux-aarch64 | ||
uses: ./.github/workflows/build.yml | ||
with: | ||
os: warp-ubuntu-latest-arm64-8x | ||
target: ${{ inputs.target }}-archive | ||
upload_result: true | ||
secrets: | ||
cachix-token: "${{ secrets.cachix-token }}" | ||
|
||
build-macos-aarch64-archive: | ||
name: "MacOS aarch64: Build archive" | ||
needs: build-macos-aarch64 | ||
uses: ./.github/workflows/build.yml | ||
with: | ||
os: warp-macos-latest-arm64-6x | ||
target: ${{ inputs.target }}-archive | ||
upload_result: true | ||
secrets: | ||
cachix-token: "${{ secrets.cachix-token }}" | ||
|
||
# Step 2b: create Docker image for all (Linux) platforms. | ||
|
||
build-linux-x86_64-image: | ||
name: "Linux x86_64: Build Docker image" | ||
needs: build-linux-x86_64 | ||
uses: ./.github/workflows/build.yml | ||
with: | ||
os: warp-ubuntu-latest-x64-4x | ||
target: ${{ inputs.target }}-image | ||
upload_result: true | ||
secrets: | ||
cachix-token: "${{ secrets.cachix-token }}" | ||
|
||
build-linux-aarch64-image: | ||
name: "Linux aarch64: Build Docker image" | ||
needs: build-linux-aarch64 | ||
uses: ./.github/workflows/build.yml | ||
with: | ||
os: warp-ubuntu-latest-arm64-8x | ||
target: ${{ inputs.target }}-image | ||
upload_result: true | ||
secrets: | ||
cachix-token: "${{ secrets.cachix-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 |
---|---|---|
|
@@ -14,10 +14,6 @@ on: | |
- opened | ||
- synchronize | ||
|
||
push: | ||
branches: | ||
- "main" | ||
|
||
jobs: | ||
check: | ||
name: "Checks" | ||
|
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