Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Polaris
Commits
268f0e68
Unverified
Commit
268f0e68
authored
3 years ago
by
Janki Chhatbar
Committed by
GitHub
3 years ago
Browse files
Options
Download
Email Patches
Plain Diff
Correct URL to download polaris tar (#660)
parent
e31f3f1b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.github/actions/setup-polaris/get_polaris.sh
+3
-2
.github/actions/setup-polaris/get_polaris.sh
.github/workflows/test_setup.yml
+2
-2
.github/workflows/test_setup.yml
docs/infrastructure-as-code.md
+4
-4
docs/infrastructure-as-code.md
with
9 additions
and
8 deletions
+9
-8
.github/actions/setup-polaris/get_polaris.sh
+
3
-
2
View file @
268f0e68
...
...
@@ -3,15 +3,16 @@ if [[ -z "$INPUT_VERSION" ]]; then
echo
"Missing polaris version information"
exit
1
fi
POLARIS_URL
=
https://github.com/FairwindsOps/polaris/releases/download/
$INPUT_VERSION
/polaris_linux_amd64.tar.gz
polaris version |
grep
"
$INPUT_VERSION
"
&> /dev/null
if
[
$?
==
0
]
;
then
echo
"Polaris
$INPUT_VERSION
is already installed! Exiting gracefully."
exit
0
else
echo
"Installing polaris to path
."
echo
"Installing polaris to path
from "
$POLARIS_URL
fi
TARGET_FILE
=
"polaris.tar.gz"
curl
-LJ
-o
$TARGET_FILE
'https://github.com/FairwindsOps/polaris/releases/download/'
"
$INPUT_VERSION
"
'/polaris_'
"
$INPUT_VERSION
"
'_linux_386.tar.gz'
curl
-LJ
-o
$TARGET_FILE
$POLARIS_URL
mkdir
polaris
tar
-xzf
$TARGET_FILE
-C
polaris
rm
$TARGET_FILE
...
...
This diff is collapsed.
Click to expand it.
.github/workflows/test_setup.yml
+
2
-
2
View file @
268f0e68
...
...
@@ -11,7 +11,7 @@ jobs:
-
name
:
Setup polaris
uses
:
./.github/actions/setup-polaris
with
:
version
:
3.0.3
version
:
4.2.0
-
name
:
Use command
run
:
polaris version
...
...
@@ -22,6 +22,6 @@ jobs:
-
name
:
Setup polaris
uses
:
fairwindsops/polaris/.github/actions/setup-polaris@master
with
:
version
:
3.0.3
version
:
4.2.0
-
name
:
Use command
run
:
polaris version
This diff is collapsed.
Click to expand it.
docs/infrastructure-as-code.md
+
4
-
4
View file @
268f0e68
...
...
@@ -88,9 +88,9 @@ The version number of the release tag.
##### Example usage
```
yaml
uses
:
fairwindsops/polaris@master
uses
:
fairwindsops/polaris
/.github/actions/setup-polaris
@master
with
:
version
:
"
3.0.3"
version
:
4.2.0
```
Example inside a job:
...
...
@@ -99,9 +99,9 @@ Example inside a job:
steps
:
-
uses
:
actions/checkout@v2
-
name
:
Setup polaris
uses
:
fairwindsops/polaris@master
uses
:
fairwindsops/polaris
/.github/actions/setup-polaris
@master
with
:
version
:
3.0.3
version
:
4.2.0
-
name
:
Use command
run
:
polaris version
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
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
Menu
Projects
Groups
Snippets
Help