-
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.
Merge pull request #65 from LinuxSuRen/fix/master-build
Fix the action build base on the master branch
- Loading branch information
Showing
4 changed files
with
28 additions
and
71 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
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 |
---|---|---|
|
@@ -47,14 +47,15 @@ jobs: | |
run: | | ||
echo "::set-output name=version::${{ fromJSON(steps.meta.outputs.json).labels['org.opencontainers.image.version'] }}" | ||
- name: Build | ||
shell: bash | ||
run: | | ||
curl -L https://github.com/jenkins-zh/jenkins-cli/releases/latest/download/jcli-linux-amd64.tar.gz|tar xzv | ||
export PATH=.:$PATH:phantomjs/bin | ||
wget https://github.com/LinuxSuRen/custom-war-packager/releases/download/v2.0-alpha-6/custom-war-packager-cli-2.0-alpha-7-20210527.031403-1-jar-with-dependencies.jar | ||
mv custom-war-packager-cli-2.0-alpha-7-20210527.031403-1-jar-with-dependencies.jar ~/.jenkins-cli/cwp-cli.jar | ||
jcli cwp --install-artifacts --config-path formula.yaml \ | ||
--value-set output=load \ | ||
--value-set tag=kubespheredev/ks-jenkins:${{ steps.build_env.outputs.version }} | ||
--value-set tag=kubespheredev/ks-jenkins:${{ steps.build_env.outputs.version }} \ | ||
--value-set platform=linux/amd64 | ||
- name: Run Trivy vulnerability scanner | ||
uses: aquasecurity/[email protected] | ||
if: github.event_name == 'pull_request' | ||
|
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