-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7c49ae4
commit 34d323f
Showing
3 changed files
with
31 additions
and
1 deletion.
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
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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# FreeBSD Vagrant Action | ||
|
||
**This value for [runs-on](https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idruns-on) must always be set to `macos-latest` in order to use this action.** | ||
|
||
This action allows the running of command-line programs via the `bash` shell of FreeBSD VMs provisioned with Vagrant using the [run](https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun) keyword. This also works with composite actions which exclusively use the `run` keyword (and/or call other composite actions which also do so.) | ||
|
||
#### *This action is currently only tested with these boxes (but will probably also work with others):* | ||
* `freebsd/FreeBSD-12.4-RELEASE` | ||
* `freebsd/FreeBSD-13.2-RELEASE` | ||
* `generic/freebsd12` | ||
* `generic/freebsd13` | ||
|
||
# Usage | ||
<!-- start usage --> | ||
1. Provision a `FreeBSD VM` using the specified `box` (with 2 CPUs & 2GB of RAM) | ||
```yaml | ||
- name: Provision VM | ||
uses: hummeltech/[email protected] | ||
with: | ||
box: freebsd/FreeBSD-12.4-RELEASE | ||
cpus: 2 | ||
memory: 2048 | ||
``` | ||
2. Execute a command using the `run` keyword | ||
```yaml | ||
- name: Display the contents of /etc/os-release | ||
run: cat /etc/os-release | ||
``` | ||
<!-- end usage --> |
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