-
Notifications
You must be signed in to change notification settings - Fork 2
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 #2 from RoseSecurity/update-action
Update GitHub Action
- Loading branch information
Showing
3 changed files
with
20 additions
and
4 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,4 +1,4 @@ | ||
FROM im2nguyen/rover:v0.2.2 | ||
FROM im2nguyen/rover:v0.3.3 | ||
|
||
ADD entrypoint.sh /entrypoint.sh | ||
ENTRYPOINT ["sh","/entrypoint.sh"] |
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 |
---|---|---|
|
@@ -8,7 +8,7 @@ You will need to create a workflow to checkout your repo: | |
|
||
```yml | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
uses: actions/checkout@v4 | ||
``` | ||
The you will need to specify the rover action: | ||
|
@@ -42,6 +42,17 @@ The final step in the workflow will be the artifacting of the standalone files. | |
path: "./rover.zip" | ||
``` | ||
Or the generated image: | ||
```yml | ||
- name: Upload rover image | ||
uses: edunad/[email protected] | ||
with: | ||
path: './rover.svg' | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
title: 'Rover Visualization' | ||
``` | ||
Once you run the workflow, the actions will upload the artifacts and make them available within the run. | ||
## Special Thanks | ||
|
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,3 +1,8 @@ | ||
#!/bin/bash | ||
#!/usr/bin/env bash | ||
|
||
alias rover='rover -standalone true' | ||
|
||
[ -z "$TF_VAR" ] && rover -tfVar "$TF_VAR" | ||
[ -z "$TF_VAR_FILE" ] && rover -tfVarFile "$TF_VAR_FILE" | ||
[ -z "$GEN_IMAGE" ] && rover -genImage "$GEN_IMAGE" | ||
|
||
rover -standalone true |