forked from intelops/compage
-
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.
- Loading branch information
1 parent
cf6b06a
commit 5e1f5fd
Showing
1,523 changed files
with
7,618 additions
and
48,322 deletions.
There are no files selected for viewing
File renamed without 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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: core-ci | ||
name: compage-ci | ||
|
||
on: | ||
push: | ||
|
@@ -25,25 +25,20 @@ jobs: | |
uses: actions/setup-go@v4 | ||
with: | ||
go-version: '1.20' | ||
cache-dependency-path: '**/core/go.sum' | ||
cache-dependency-path: '**/go.sum' | ||
- name: Build | ||
run: | | ||
cd core | ||
go build -v ./... | ||
cd .. | ||
- name: golangci-lint | ||
run: | | ||
go install github.com/golangci/golangci-lint/cmd/[email protected] | ||
cd core | ||
golangci-lint run | ||
cd .. | ||
- name: Install Protoc | ||
uses: arduino/setup-protoc@v2 | ||
with: | ||
version: "23.x" | ||
- name: Test | ||
run: | | ||
cd core | ||
sudo apt install dos2unix -y | ||
# install openapi-generator-cli | ||
mkdir -p $HOME/ogc | ||
|
@@ -54,11 +49,10 @@ jobs: | |
export GOBIN=$GOPATH/bin | ||
export PATH=$PATH:$GOPATH:$GOBIN:$HOME/ogc | ||
go test -v ./... -race -coverprofile=coverage.out -coverpkg=./... -covermode=atomic | ||
cd .. | ||
- name: Upload coverage to Codecov | ||
uses: codecov/codecov-action@v3 | ||
with: | ||
files: ./core/coverage.out | ||
files: ./coverage.out | ||
flags: core | ||
token: ${{secrets.CODECOV_TOKEN}} | ||
- name: Run Trivy vulnerability scanner in repo mode | ||
|
@@ -97,7 +91,7 @@ jobs: | |
id: metadata | ||
uses: docker/metadata-action@v4 | ||
with: | ||
images: ${{ env.REGISTRY }}/${{ github.repository }}/core | ||
images: ${{ env.REGISTRY }}/${{ github.repository }} | ||
tags: | | ||
type=semver,pattern={{version}} | ||
type=semver,pattern={{major}}.{{minor}} | ||
|
@@ -114,16 +108,16 @@ jobs: | |
uses: docker/build-push-action@v4 | ||
with: | ||
# relative path to the place where source code with Dockerfile is located | ||
context: ./core | ||
context: . | ||
# Note: tags have to be all lower-case | ||
tags: ${{ env.REGISTRY }}/${{ github.repository }}/core:${{ github.run_id }} | ||
tags: ${{ env.REGISTRY }}/${{ github.repository }}:${{ github.run_id }} | ||
# ${{ steps.metadata.outputs.tags }} | ||
labels: ${{ steps.metadata.outputs.labels }} | ||
# build on feature branches, push only on the main branch | ||
push: true | ||
# - uses: goodwithtech/dockle-action@main | ||
# with: | ||
# image: ${{ env.REGISTRY }}/${{ github.repository }}/core:${{ github.run_id }} | ||
# image: ${{ env.REGISTRY }}/${{ github.repository }}:${{ github.run_id }} | ||
# format: 'list' | ||
# exit-code: '1' | ||
# exit-level: 'warn' | ||
|
@@ -132,11 +126,11 @@ jobs: | |
uses: sigstore/cosign-installer@main | ||
- name: Sign the images | ||
run: | | ||
cosign sign -y ${{ env.REGISTRY }}/${{ github.repository }}/core:${{ github.run_id }} | ||
cosign sign -y ${{ env.REGISTRY }}/${{ github.repository }}:${{ github.run_id }} | ||
env: | ||
COSIGN_EXPERIMENTAL: 1 | ||
- name: Verify the pushed tags | ||
run: cosign verify ${{ env.REGISTRY }}/${{ github.repository }}/core:${{ github.run_id }} --certificate-identity ${{ env.GH_URL }}/${{ github.repository }}/.github/workflows/core-ci.yml@refs/heads/main --certificate-oidc-issuer https://token.actions.githubusercontent.com | ||
run: cosign verify ${{ env.REGISTRY }}/${{ github.repository }}:${{ github.run_id }} --certificate-identity ${{ env.GH_URL }}/${{ github.repository }}/.github/workflows/ci.yml@refs/heads/main --certificate-oidc-issuer https://token.actions.githubusercontent.com | ||
env: | ||
COSIGN_EXPERIMENTAL: 1 | ||
- name: Run Trivy in GitHub SBOM mode and submit results to Dependency Graph | ||
|
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 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 |
---|---|---|
@@ -1,18 +1,14 @@ | ||
/node_modules/ | ||
/app/build/ | ||
/app/node_modules/ | ||
/core/.devspace/ | ||
/core/.idea/ | ||
/.devspace/ | ||
/.idea/ | ||
/.devspace/logs/default.log | ||
/app/scratch/ | ||
/core/core | ||
/scratch/ | ||
/.idea | ||
/core/coverage.out | ||
/app/coverage | ||
/coverage.out | ||
/coverage | ||
openapitools.json | ||
/core/openapitools.json | ||
/ui/.env.kind.cluster | ||
/app/compage-app.sqlite3 | ||
/openapitools.json | ||
/deploy/build/ | ||
/app/secure-connect-compage.zip | ||
/charts/compage/secure-connect-compage.zip | ||
compage |
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,28 +1,28 @@ | ||
[submodule "core/templates/compage-template-go"] | ||
path = core/templates/compage-template-go | ||
[submodule "templates/compage-template-go"] | ||
path = templates/compage-template-go | ||
url = https://github.com/intelops/compage-template-go.git | ||
branch = template-v8 | ||
[submodule "core/templates/compage-template-java"] | ||
path = core/templates/compage-template-java | ||
[submodule "templates/compage-template-java"] | ||
path = templates/compage-template-java | ||
url = https://github.com/intelops/compage-template-java.git | ||
branch = template-v1 | ||
[submodule "core/templates/compage-template-javascript"] | ||
path = core/templates/compage-template-javascript | ||
[submodule "templates/compage-template-javascript"] | ||
path = templates/compage-template-javascript | ||
url = https://github.com/intelops/compage-template-javascript.git | ||
branch = template-v1 | ||
[submodule "core/templates/compage-template-python"] | ||
path = core/templates/compage-template-python | ||
[submodule "templates/compage-template-python"] | ||
path = templates/compage-template-python | ||
url = https://github.com/intelops/compage-template-python.git | ||
branch = template-v1 | ||
[submodule "core/templates/compage-template-ruby"] | ||
path = core/templates/compage-template-ruby | ||
[submodule "templates/compage-template-ruby"] | ||
path = templates/compage-template-ruby | ||
url = https://github.com/intelops/compage-template-ruby.git | ||
branch = template-v1 | ||
[submodule "core/templates/compage-template-rust"] | ||
path = core/templates/compage-template-rust | ||
[submodule "templates/compage-template-rust"] | ||
path = templates/compage-template-rust | ||
url = https://github.com/intelops/compage-template-rust.git | ||
branch = template-v1 | ||
[submodule "core/templates/compage-template-typescript"] | ||
path = core/templates/compage-template-typescript | ||
[submodule "templates/compage-template-typescript"] | ||
path = templates/compage-template-typescript | ||
url = https://github.com/intelops/compage-template-typescript.git | ||
branch = template-v1 |
File renamed without 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
File renamed without changes.
Oops, something went wrong.