Skip to content

Github Action to set a MVN_GOALS environment variable based on configuration

Notifications You must be signed in to change notification settings

digipost/set-maven-goals

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

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

About

Github Action to set a MVN_GOALS environment variable based on configuration

Resources

Stars

Watchers

Forks

Packages

No packages published