-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Move to Github Action Signed-off-by: galal-hussein <[email protected]> * Move to Github Action Signed-off-by: galal-hussein <[email protected]> * fix code generation * Add release and chart workflows Signed-off-by: galal-hussein <[email protected]> * Add release and chart workflows Signed-off-by: galal-hussein <[email protected]> * Add release and chart workflows Signed-off-by: galal-hussein <[email protected]> * Add release and chart workflows Signed-off-by: galal-hussein <[email protected]> * test release and charts Signed-off-by: galal-hussein <[email protected]> * test release and charts Signed-off-by: galal-hussein <[email protected]> * test release and charts Signed-off-by: galal-hussein <[email protected]> * test release and charts Signed-off-by: galal-hussein <[email protected]> * test release and charts Signed-off-by: galal-hussein <[email protected]> * Fix GHA migration Signed-off-by: galal-hussein <[email protected]> * Fix GHA migration Signed-off-by: galal-hussein <[email protected]> --------- Signed-off-by: galal-hussein <[email protected]>
- Loading branch information
1 parent
0d6bf49
commit 3879912
Showing
8 changed files
with
116 additions
and
166 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 @@ | ||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
|
||
name: Build | ||
permissions: | ||
contents: read | ||
jobs: | ||
build-cross-arch: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Cross Arch Build | ||
run: | | ||
make ci | ||
env: | ||
CROSS: "true" | ||
|
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,30 @@ | ||
on: | ||
push: | ||
tags: | ||
- "chart-*" | ||
|
||
name: Chart | ||
permissions: | ||
contents: write | ||
id-token: write | ||
jobs: | ||
chart-release: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Package Chart | ||
run: | | ||
make package-chart; | ||
- name: Release Chart | ||
uses: softprops/action-gh-release@v2 | ||
with: | ||
files: | | ||
deploy/* | ||
- name: Index Chart | ||
run: | | ||
make index-chart | ||
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: | ||
tags: | ||
- "v*" | ||
|
||
name: Release | ||
permissions: | ||
contents: write | ||
id-token: write | ||
jobs: | ||
release-cross-arch: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Cross Arch Build | ||
run: | | ||
make ci | ||
env: | ||
CROSS: "true" | ||
|
||
- name: "Read secrets" | ||
uses: rancher-eio/read-vault-secrets@main | ||
with: | ||
secrets: | | ||
secret/data/github/repo/${{ github.repository }}/dockerhub/${{ github.repository_owner }}/credentials username | DOCKER_USERNAME ; | ||
secret/data/github/repo/${{ github.repository }}/dockerhub/${{ github.repository_owner }}/credentials password | DOCKER_PASSWORD ; | ||
- name: release binaries | ||
uses: softprops/action-gh-release@v2 | ||
with: | ||
files: | | ||
bin/* | ||
- name: Login to Container Registry | ||
uses: docker/login-action@v3 | ||
with: | ||
username: ${{ env.DOCKER_USERNAME }} | ||
password: ${{ env.DOCKER_PASSWORD }} | ||
|
||
- name: Build container image | ||
uses: docker/build-push-action@v5 | ||
with: | ||
context: . | ||
push: true | ||
tags: rancher/k3k:${{ github.ref_name }} | ||
file: package/Dockerfile | ||
platforms: linux/amd64 | ||
|
||
|
||
|
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
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