forked from meshery/meshery
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/master' into add/meshery-cillium
- Loading branch information
Showing
107 changed files
with
28,092 additions
and
49,013 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
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,73 @@ | ||
name: Docker Desktop Extension for Meshery | ||
# TODO | ||
## 1) Incorporate mesheryctl binaries into each DDE image | ||
|
||
on: | ||
push: | ||
tags: | ||
- 'v*' | ||
branches: | ||
- 'master' | ||
paths-ignore: | ||
- 'docs/**' | ||
- '.github/**' | ||
workflow_dispatch: | ||
|
||
jobs: | ||
docker: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Determine Release Channel | ||
id: release-channel | ||
run: | | ||
if [[ ${{ github.ref }} = refs/tags* ]] | ||
then | ||
echo "RELEASE_CHANNEL=stable" >> $GITHUB_ENV | ||
else | ||
echo "RELEASE_CHANNEL=edge" >> $GITHUB_ENV | ||
fi | ||
echo "Release channel determined to be $RELEASE_CHANNEL" | ||
- | ||
name: Set up QEMU | ||
uses: docker/setup-qemu-action@v1 | ||
- | ||
name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v1 | ||
- | ||
name: Docker Meta | ||
id: meta | ||
uses: docker/metadata-action@v3 | ||
with: | ||
images: meshery/meshery-docker-desktop-extension | ||
flavor: | | ||
latest=false | ||
prefix=${{env.RELEASE_CHANNEL}}- | ||
tags: | | ||
type=raw,value={{sha}} | ||
type=raw,value={{tag}},enable=${{ startsWith(github.ref, 'refs/tags/v') }} | ||
type=raw,value=latest | ||
type=semver,pattern={{version}} | ||
- | ||
name: Login to DockerHub | ||
uses: docker/login-action@v1 | ||
with: | ||
username: ${{ secrets.DOCKER_USERNAME }} | ||
password: ${{ secrets.DOCKER_PASSWORD }} | ||
|
||
- | ||
name: Build and Push | ||
uses: docker/build-push-action@v2 | ||
with: | ||
context: "{{defaultContext}}:install/docker-desktop-extension" | ||
push: true | ||
platforms: linux/amd64,linux/arm64,linux/386 | ||
tags: ${{ steps.meta.outputs.tags }} | ||
|
||
- | ||
name: Docker Hub Description | ||
uses: peter-evans/dockerhub-description@v3 | ||
with: | ||
username: ${{ secrets.DOCKER_USERNAME }} | ||
password: ${{ secrets.DOCKER_PASSWORD }} | ||
repository: meshery/meshery-docker-desktop-extension |
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 |
---|---|---|
|
@@ -13,7 +13,7 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v2 | ||
uses: actions/checkout@v3.0.0 | ||
with: | ||
fetch-depth: 1 | ||
- name: Docker login | ||
|
@@ -43,13 +43,13 @@ jobs: | |
runs-on: macos-latest | ||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v2 | ||
uses: actions/checkout@v3.0.0 | ||
with: | ||
fetch-depth: 0 | ||
- name: Set up Go | ||
uses: actions/[email protected] | ||
with: | ||
go-version: ${{ secrets.GO_VERSION }} | ||
go-version: 1.17 | ||
- name: goreleaser with tag | ||
uses: goreleaser/[email protected] | ||
env: | ||
|
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 |
---|---|---|
|
@@ -27,6 +27,10 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/[email protected] | ||
- uses: actions/setup-go@v2 | ||
with: | ||
check-latest: 'true' | ||
go-version: '1.17' | ||
- name: golangci-lint | ||
uses: golangci/[email protected] | ||
with: | ||
|
@@ -37,7 +41,7 @@ jobs: | |
# working-directory: somedir | ||
|
||
# Optional: golangci-lint command line arguments. | ||
# args: --issues-exit-code=0 | ||
# args: --disable-all -E revive -E gosec -E errcheck -E nilerr -E govet -E gofmt -E goimports -E staticcheck | ||
|
||
# Optional: show only new issues if it's a pull request. The default value is `false`. | ||
# only-new-issues: true | ||
|
@@ -53,7 +57,7 @@ jobs: | |
- name: Setup Go | ||
uses: actions/[email protected] | ||
with: | ||
go-version: '1.16.7' | ||
go-version: '1.17' | ||
- name: Setup Cache | ||
uses: actions/[email protected] | ||
with: | ||
|
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 |
---|---|---|
|
@@ -8,6 +8,7 @@ on: | |
- "ui/**" | ||
- "provider-ui/**" | ||
- ".github/**" | ||
- "install/**" | ||
pull_request: | ||
branches: | ||
- "master" | ||
|
@@ -25,15 +26,15 @@ jobs: | |
name: Unit tests | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v3.0.0 | ||
with: | ||
fetch-depth: 2 | ||
- name: Install lynx for xdg-open support | ||
run: sudo apt-get install lynx | ||
- name: Setup Go | ||
uses: actions/setup-go@v2 | ||
uses: actions/setup-go@v3.0.0 | ||
with: | ||
go-version: "1.16.7" | ||
go-version: "1.17" | ||
- name: Run coverage | ||
run: go test --short ./... -race -coverprofile=coverage.txt -covermode=atomic | ||
- name: Upload coverage to Codecov | ||
|
@@ -53,9 +54,9 @@ jobs: | |
- name: Install lynx for xdg-open support | ||
run: sudo apt-get install lynx | ||
- name: Setup Go | ||
uses: actions/setup-go@v2 | ||
uses: actions/setup-go@v3.0.0 | ||
with: | ||
go-version: "1.16.7" | ||
go-version: "1.17" | ||
- name: Create k8s Kind Cluster | ||
uses: helm/[email protected] | ||
with: | ||
|
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 |
---|---|---|
|
@@ -24,6 +24,10 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/[email protected] | ||
- uses: actions/setup-go@v2 | ||
with: | ||
check-latest: 'true' | ||
go-version: '1.17' | ||
- name: golangci-lint | ||
uses: golangci/[email protected] | ||
with: | ||
|
@@ -59,7 +63,7 @@ jobs: | |
restore-keys: | | ||
${{ runner.os }}-go- | ||
- name: goreleaser WITHOUT tag | ||
uses: goreleaser/goreleaser-action@v2 | ||
uses: goreleaser/goreleaser-action@v2.8.0 | ||
if: success() && startsWith(github.ref, 'refs/tags/') == false | ||
env: | ||
RELEASE_CHANNEL: "edge" | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package main | ||
|
||
import ( | ||
"testing" | ||
) | ||
|
||
func TestMain(t *testing.T) { | ||
if testing.Short() { | ||
t.Skip("Skipping test in short mode.") | ||
} | ||
|
||
t.Log("Need to run main() skipping") | ||
} |
Submodule wrk2
added at
f4884e
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
Binary file not shown.
Oops, something went wrong.