Skip to content

Commit

Permalink
Merge pull request #102 from nocalhost/dev
Browse files Browse the repository at this point in the history
- Merge dev into main
  • Loading branch information
ovaldi authored Aug 30, 2021
2 parents a30af28 + ea9a5c4 commit 1e6e090
Show file tree
Hide file tree
Showing 100 changed files with 1,658 additions and 589 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,14 @@ jobs:
with:
java-version: 11

- name: Get config
run: |
echo "SERVER_VERSION=${{ secrets.MINIMUNM_VERSION_REQUIREMENT }}" | sed 's/v//g' >> $GITHUB_ENV
- name: Build
run: |
sed -i "s/sentryDsn=/sentryDsn=${{secrets.INTELLIJ_PLUGIN_SENTRY_DSN}}/g" src/main/resources/config.properties
sed -i -E "s/serverVersion=(.+)/serverVersion=${{ env.SERVER_VERSION }}/g" src/main/resources/config.properties
./gradlew clean buildPlugin
- name: Push to Coding Artifacts
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,15 @@ jobs:
echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
echo "PLUGIN_VERSION=${GITHUB_REF#refs/*/}" | sed -E 's/v//g' >> $GITHUB_ENV
echo "NHCTL_VERSION=${GITHUB_REF#refs/*/}" | sed 's/v//g' >> $GITHUB_ENV
echo "SERVER_VERSION=${{ secrets.MINIMUNM_VERSION_REQUIREMENT }}" | sed 's/v//g' >> $GITHUB_ENV
- name: Build
env:
JETBRAINS_TOKEN: ${{ secrets.JETBRAINS_TOKEN }}
run: |
sed -i "s/sentryDsn=/sentryDsn=${{secrets.INTELLIJ_PLUGIN_SENTRY_DSN}}/g" src/main/resources/config.properties
sed -i -E "s/nhctlVersion=(.+)/nhctlVersion=${{ env.NHCTL_VERSION }}/g" src/main/resources/config.properties
sed -i -E "s/serverVersion=(.+)/serverVersion=${{ secrets.MINIMUNM_VERSION_REQUIREMENT }}/g" src/main/resources/config.properties
sed -i -E "s/serverVersion=(.+)/serverVersion=${{ env.SERVER_VERSION }}/g" src/main/resources/config.properties
sed -i -E "s/version=(.+)/version=${{ env.PLUGIN_VERSION }}/g" gradle.properties
./gradlew clean publishPlugin
Expand Down
201 changes: 2 additions & 199 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -96,205 +96,8 @@ tasks.runIde {
tasks {
patchPluginXml {
pluginId.set("dev.nocalhost.nocalhost-intellij-plugin")
pluginDescription.set(
"""
<html>
<p>
Nocalhost for JetBrains brings the power and convenience of IDEs to cloud-native Kubernetes application development. It helps you to increase agility and speed to develop cloud-native applications on Kubernetes.
</p>
<h3>
Key Features
</h3>
<p>
<ul>
<li>
<b>Start cloud-native application development in one click</b> - Nocalhost helps you spend less time on environment configuration, you can easily connect to any Kubernetes environment in one click, and focus on developing your app.
</li>
<li>
<b>Fast deployment</b> - You can deploy any Manifest Yaml, Helm and Kustomize applications by just few clicks.
</li>
<li>
<b>See code change under a second</b> - Automatically synchronize the code to container every time you make a change. Nocalhost eliminate the submit, building and pushing cycles, significantly speed up the feedback loop of development, so you see change in under a second.
</li>
<li>
<b>Easy debugging in remote Kubernetes</b> - Nocalhost provides the same debugging experience you've used in the IDE even when debugging in remote Kubernetes cluster.
</li>
</ul>
</p>
<h3>
Resources
</h3>
<p>
<ul>
<li>
<a href="https://nocalhost.dev/eng/getting-started/"><b>Quick start</b></a> - Follow our quick start to enjoy the faster and easier cloud-native application.
</li>
<li>
<a href="https://nocalhost.dev/"><b>Documentation</b></a> - We have a lot of features to explore. Head over our documentation to discover more.
</li>
<li>
<a href="https://nocalhost.slack.com/"><b>Talk to us</b></a> - Connect to the Nocalhost development team by joining our Slack channel.
</li>
<li>
<a href="https://github.com/nocalhost/nocalhost/issues"><b>File a issue</b></a> - If you discover any issue, file a bug and will fix it as soon as possible.
</li>
</ul>
</p>
</html>
""".trimIndent()
)
changeNotes.set(
"""
<h2>Version 0.4.27</h2>
<h3>New Features</h3>
<ul>
<li>
Automatically open browser after installed Demo App
</li>
<li>
Add cluster status
</li>
<li>
Supports clearing namespace PVC
</li>
<li>
Add `nhctl` error message pop-up feature
</li>
<li>
Add supports to JetBrains IDEs 2021.2
</li>
</ul>
<h3>Refactor & Improvement</h3>
<ul>
<li>
Modify the NPE that appears when the tree menu is rendered
</li>
<li>
Optimize PHP debug
</li>
</ul>
<h3>Bug Fixes</h3>
<ul>
<li>
Fixed `list workload PVC` issue
</li>
</ul>
<h2>Version 0.4.19</h2>
<h3>New Features</h3>
<ul>
<li>
Supports JetBrains IDEs 2021.2
</li>
<li>
Supports namespace PVC clear
</li>
</ul>
<h3>Refactor & Improvement</h3>
<ul>
<li>
Host key checking skip for cloning git repository over SSH
</li>
<li>
A more friendly notification for nhctl command messages
</li>
<li>
PHP remote debugging experience
</li>
<li>
Add cluster status display
</li>
<li>
Add guide message
</li>
</ul>
<h3>Bug Fixes</h3>
<ul>
<li>
NPEs
</li>
</ul>
<h2>Version 0.4.15</h2>
<h3>New Features</h3>
<ul>
<li>
Supports PHP remote debugging
</li>
<li>
Supports application upgrade
</li>
<li>
Skip SSH host key checking on git clone
</li>
</ul>
<h3>Refactor & Improvement</h3>
<ul>
<li>
Move edit manifest action to context menu
</li>
<li>
A more friendly notification for "Server version outdate"
</li>
</ul>
<h3>Bug Fixes</h3>
<ul>
<li>
NPEs
</li>
<li>
Fixed "get config by nhctl" issue in run and debug mode
</li>
</ul>
<h2>Version 0.4.14</h2>
<h3>New Features</h3>
<ul>
<li>
Supports automatically refresh Nocalhost Server side token
</li>
</ul>
<h3>Bug Fixes</h3>
<ul>
<li>
Fixed the "unable to save configuration" issue
</li>
</ul>
<h2>Previous Changelogs</h2>
<p>
<a href="https://github.com/nocalhost/nocalhost/tree/main/CHANGELOG">https://github.com/nocalhost/nocalhost/tree/main/CHANGELOG</a>
</p>
"""
)
pluginDescription.set(provider { file("description.html").readText() })
changeNotes.set(provider { file("changenotes.html").readText() })
}

publishPlugin {
Expand Down
Loading

0 comments on commit 1e6e090

Please sign in to comment.