Skip to content

Commit

Permalink
Merge pull request #2 from RoseSecurity/update-action
Browse files Browse the repository at this point in the history
Update GitHub Action
  • Loading branch information
Official-James authored Jan 8, 2024
2 parents e71c336 + ca8d17c commit 5b6088b
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
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"]
13 changes: 12 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand Down
9 changes: 7 additions & 2 deletions entrypoint.sh
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

0 comments on commit 5b6088b

Please sign in to comment.