https://github.com/digipost/set-maven-goals
Github Action to set a MVN_GOALS environment variable based on configuration
https://github.com/digipost/set-maven-goals
Last synced: about 2 months ago
JSON representation
Github Action to set a MVN_GOALS environment variable based on configuration
- Host: GitHub
- URL: https://github.com/digipost/set-maven-goals
- Owner: digipost
- Created: 2022-11-21T09:28:14.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-03-18T06:39:10.000Z (about 1 year ago)
- Last Synced: 2025-01-29T05:37:54.360Z (4 months ago)
- Language: JavaScript
- Size: 144 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Set Maven Goals javascript action
This action returns the desired Maven Goals property according to
our specification. This property is also
exported in the Github Environment as `MVN_GOALS`.
Our specification, in short, is as follows:
- Apps that build and deploy docker images to ACR run jib:build
- Apps that build and deploy JAR packages to GPR run the default `deploy` goal to GPR
- Tests are skipped for tags
- No images or packages are deployed for the default branch## Inputs
### deploy-to-acr
True if the application deploys docker images to Azure Container Registry using Jib, otherwise false.
### deploy-to-acr
True if the application deploys JARs to Github Package Registry using the default `deploy` goal, otherwise false.
## Outputs
### `maven-goals`
The appropriate `maven-goals` value.
This value is also exported in the Github Environment as `MVN_GOALS`.## Example usage
```yaml
uses: digipost/[email protected]
```## Building this project
Make desired changes in `index.js` (and/or other files). Then run
```
ncc build index.js
```to generate the dist/index.js file
## Links
- [Great guide for creating JavaScript Actions](https://docs.github.com/en/actions/creating-actions/creating-a-javascript-action)
- [Vercel NCC on Github](https://github.com/vercel/ncc)