-
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.
- add kubernetes manifest files
- Loading branch information
Showing
8 changed files
with
317 additions
and
195 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 |
---|---|---|
@@ -1,32 +1,32 @@ | ||
name: Master Build | ||
on: | ||
push: | ||
branches: [ master ] | ||
push: | ||
branches: [ master ] | ||
jobs: | ||
build: | ||
name: Build and update doc | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
build: | ||
name: Build | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Setup Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
- run: npm i --legacy-peer-deps | ||
- name: Setup Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
- run: npm i --legacy-peer-deps | ||
|
||
- name: Test | ||
# run: npm run full-test | ||
run: npm run lint && npm run build | ||
- name: Test | ||
# run: npm run full-test | ||
run: npm run lint && npm run build | ||
|
||
# - name: Edit Path | ||
# run: | | ||
# sed -i 's/SF:.*.src/SF:src/g' coverage/lcov.info | ||
# sed -i 's/SF:.*.src/SF:src/g' coverage/lcov.info | ||
- name: SonarCloud scan | ||
uses: SonarSource/sonarcloud-github-action@master | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | ||
# - name: Edit Path | ||
# run: | | ||
# sed -i 's/SF:.*.src/SF:src/g' coverage/lcov.info | ||
# sed -i 's/SF:.*.src/SF:src/g' coverage/lcov.info | ||
- name: SonarCloud scan | ||
uses: SonarSource/sonarcloud-github-action@master | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
SONAR_TOKEN: ${{ secrets.SONAR_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 |
---|---|---|
@@ -1,37 +1,37 @@ | ||
name: PR Test Build | ||
on: | ||
pull_request: | ||
types: [ opened, synchronize, reopened ] | ||
pull_request: | ||
types: [ opened, synchronize, reopened ] | ||
jobs: | ||
build: | ||
name: Build and test | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
build: | ||
name: Build and test | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Setup Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
- run: npm i --legacy-peer-deps | ||
- name: Setup Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
- run: npm i --legacy-peer-deps | ||
|
||
- name: Lint | ||
run: npm run lint | ||
- name: Lint | ||
run: npm run lint | ||
|
||
- name: Check spelling | ||
run: npm run spell | ||
- name: Check spelling | ||
run: npm run spell | ||
|
||
- name: Test | ||
run: npm run test | ||
- name: Test | ||
run: npm run test | ||
|
||
- name: Edit Path | ||
run: | | ||
sed -i 's/SF:.*.src/SF:src/g' coverage/lcov.info | ||
sed -i 's/SF:.*.src/SF:src/g' coverage/lcov.info | ||
- name: SonarCloud scan | ||
uses: SonarSource/sonarcloud-github-action@master | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | ||
- name: Edit Path | ||
run: | | ||
sed -i 's/SF:.*.src/SF:src/g' coverage/lcov.info | ||
sed -i 's/SF:.*.src/SF:src/g' coverage/lcov.info | ||
- name: SonarCloud scan | ||
uses: SonarSource/sonarcloud-github-action@master | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
SONAR_TOKEN: ${{ secrets.SONAR_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 |
---|---|---|
@@ -1,81 +1,88 @@ | ||
name: Publish a release | ||
on: | ||
release: | ||
types: [ published ] | ||
release: | ||
types: [ published ] | ||
jobs: | ||
publish-docker: | ||
name: Docker build image and publish | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
packages: write | ||
publish-docker: | ||
name: Docker build image and publish | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
packages: write | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
- name: Setup Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
|
||
- name: Log in to Docker Hub | ||
uses: docker/login-action@v1 | ||
with: | ||
username: ${{ secrets.DOCKER_USERNAME }} | ||
password: ${{ secrets.DOCKER_AUTH_TOKEN }} | ||
- name: Log in to Docker Hub | ||
uses: docker/login-action@v1 | ||
with: | ||
username: ${{ secrets.DOCKER_USERNAME }} | ||
password: ${{ secrets.DOCKER_AUTH_TOKEN }} | ||
|
||
- name: Read package.json | ||
uses: zvonimirsun/read-package-version-actions@v2 | ||
id: getVersion | ||
- name: Read package.json | ||
uses: zvonimirsun/read-package-version-actions@v2 | ||
id: getVersion | ||
|
||
- name: Push Version ${{ steps.getVersion.outputs.version }} | ||
uses: docker/build-push-action@v5 | ||
with: | ||
push: true | ||
tags: netgrif/application-builder:${{ steps.getVersion.outputs.version }} | ||
- name: Push Version ${{ steps.getVersion.outputs.version }} | ||
uses: docker/build-push-action@v5 | ||
with: | ||
push: true | ||
tags: netgrif/application-builder:${{ steps.getVersion.outputs.version }} | ||
|
||
- name: Push Latest | ||
if: ${{ !contains(steps.getVersion.outputs.version, '-') }} | ||
uses: docker/build-push-action@v5 | ||
with: | ||
push: true | ||
tags: netgrif/application-builder:latest | ||
- name: Push Latest | ||
if: ${{ !contains(steps.getVersion.outputs.version, '-') }} | ||
uses: docker/build-push-action@v5 | ||
with: | ||
push: true | ||
tags: netgrif/application-builder:latest | ||
|
||
publish-assets: | ||
name: Upload Release Assets | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
packages: write | ||
id-token: write | ||
security-events: write | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Push Next | ||
if: ${{ contains(steps.getVersion.outputs.version, '-') }} | ||
uses: docker/build-push-action@v5 | ||
with: | ||
push: true | ||
tags: netgrif/application-builder:next | ||
|
||
- name: Setup Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
publish-assets: | ||
name: Upload Release Assets | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
packages: write | ||
id-token: write | ||
security-events: write | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Read package.json | ||
uses: zvonimirsun/read-package-version-actions@v2 | ||
id: getVersion | ||
- name: Setup Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
|
||
- name: Build | ||
run: | | ||
npm i --legacy-peer-deps | ||
npm run build | ||
- name: Read package.json | ||
uses: zvonimirsun/read-package-version-actions@v2 | ||
id: getVersion | ||
|
||
- name: Build project | ||
run: | | ||
zip -r netgrif-application-builder-${{ steps.getVersion.outputs.version }}.zip target/application-builder | ||
- name: Build | ||
run: | | ||
npm i --legacy-peer-deps | ||
npm run build | ||
- name: Upload binaries to release | ||
uses: svenstaro/upload-release-action@v2 | ||
with: | ||
repo_token: ${{ secrets.GITHUB_TOKEN }} | ||
file: netgrif-application-builder-${{ steps.getVersion.outputs.version }}.zip | ||
asset_name: netgrif-application-builder-${{ steps.getVersion.outputs.version }}.zip | ||
tag: ${{ github.ref }} | ||
overwrite: true | ||
- name: Build project | ||
run: | | ||
zip -r netgrif-application-builder-${{ steps.getVersion.outputs.version }}.zip target/application-builder | ||
- name: Upload binaries to release | ||
uses: svenstaro/upload-release-action@v2 | ||
with: | ||
repo_token: ${{ secrets.GITHUB_TOKEN }} | ||
file: netgrif-application-builder-${{ steps.getVersion.outputs.version }}.zip | ||
asset_name: netgrif-application-builder-${{ steps.getVersion.outputs.version }}.zip | ||
tag: ${{ github.ref }} | ||
overwrite: 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
Oops, something went wrong.