Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
Charts
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
魏国强
Charts
Commits
1d1ce4cc
Unverified
Commit
1d1ce4cc
authored
Nov 30, 2020
by
Waqar Ahmed
Committed by
GitHub
Nov 30, 2020
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #5 from truenas/deploy-k8s-chart-test
Add CI for validating charts by deploying in k8s
parents
312100fb
3c007831
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
0 deletions
+30
-0
.github/workflows/deploy_charts.yml
.github/workflows/deploy_charts.yml
+30
-0
No files found.
.github/workflows/deploy_charts.yml
0 → 100644
View file @
1d1ce4cc
name
:
Charts-CI
on
:
[
push
]
jobs
:
deploy-charts
:
runs-on
:
ubuntu-20.04
steps
:
-
name
:
Install Helm
run
:
/bin/bash -c "curl https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3 | bash"
-
name
:
Checkout
uses
:
actions/checkout@v2
with
:
fetch-depth
:
0
-
name
:
Fetch base branch history
run
:
git fetch origin master:master
-
name
:
Setup catalog validation
run
:
|
sudo apt update > /dev/null 2>&1
sudo apt install -y python3-all-dev python3-pip python3-setuptools > /dev/null 2>&1
git clone https://github.com/truenas/catalog_validation
sudo pip3 install --disable-pip-version-check --exists-action w -r catalog_validation/requirements.txt > /dev/null 2>&1
sudo pip3 install -U catalog_validation/.
-
name
:
Validate changed charts
run
:
/bin/bash -c "PWD=${pwd}; sudo /usr/local/bin/charts_validate deploy --path $PWD"
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment