-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: Refactor ACT for more thorough usage
* All required files in the same file by using .actrc * Include example .secrets and .env * Update README with usage * Refactor actTest to make docker build steps optional with ENV
- Loading branch information
Showing
9 changed files
with
79 additions
and
56 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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
--directory ../../ | ||
--env-file .github/act/.env | ||
--secret-file .github/act/.secrets |
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 @@ | ||
NO_DOCKER_BUILD=true |
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,3 @@ | ||
DOCKER_PASSWORD= | ||
DOCKER_USERNAME= | ||
GITHUB_TOKEN= |
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,14 +1,27 @@ | ||
Testing GH Actions with [ACT] | ||
|
||
Need to have credentials in a [`.secrets` file](https://nektosact.com/usage/index.html#secrets), copy and rename [`.secrets.example`](./secrets.example) to `.secrets`, then fill out blank fields. Required for docker/metadata-action to read...something. Fails with `Parameter token or opts.auth is required` if they are not supplied. | ||
|
||
An ENV file can also be made by copy and renaming [`.env.example`](./env.example). Set `NO_DOCKER_BUILD=true` if you only want to test APP_VERSION and docker tags output. | ||
|
||
Run the following **from this directory** to make use of `.actrc` and proper working directoy. | ||
|
||
### Test Branch Push | ||
|
||
```shell | ||
act -W '.github/act/actTest.yml' -e '.github/act/actBranchEvent.json' | ||
``` | ||
|
||
|
||
### Test Tag Push | ||
### Test Tag (Release) Push | ||
|
||
```shell | ||
act -W '.github/act/actTest.yml' -e '.github/act/actTagEvent.json' | ||
``` | ||
|
||
|
||
### Test Tag (Pre-Release) Push | ||
|
||
```shell | ||
act -W '.github/act/actTest.yml' -e '.github/act/actTagPreEvent.json' | ||
``` |
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 @@ | ||
{ | ||
"ref": "refs/heads/master", | ||
"sha": "e80ad81f051e2ff29e73c0401ad9b89a1b32c3f7" | ||
"sha": "005dae76ab51799d3d55112738e301cb1af0dafd" | ||
} |
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,5 +1,8 @@ | ||
{ | ||
"ref": "refs/tags/0.8.0", | ||
"ref_name": "0.8.0", | ||
"sha": "0a1a94d9ad4efa373f8d34aace5e7f0a3fff42ad" | ||
"ref": "refs/tags/0.8.4", | ||
"ref_name": "0.8.4", | ||
"before": "0000000000000000000000000000000000000000", | ||
"after": "005dae76ab51799d3d55112738e301cb1af0dafd", | ||
"sha": "005dae76ab51799d3d55112738e301cb1af0dafd", | ||
"base_ref": "refs/heads/master" | ||
} |
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,8 @@ | ||
{ | ||
"ref": "refs/tags/0.8.5-rc1", | ||
"ref_name": "0.8.5-rc1", | ||
"before": "0000000000000000000000000000000000000000", | ||
"after": "005dae76ab51799d3d55112738e301cb1af0dafd", | ||
"sha": "005dae76ab51799d3d55112738e301cb1af0dafd", | ||
"base_ref": "refs/heads/master" | ||
} |
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