File tree Expand file tree Collapse file tree 3 files changed +13
-1
lines changed Expand file tree Collapse file tree 3 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,9 @@ This Action [builds](https://docs.convox.com/deployment/builds) an app based on
66** Required** The name of the [ Convox Rack] ( https://docs.convox.com/introduction/rack ) you wish to build against.
77### ` app `
88** Required** The name of the [ app] ( https://docs.convox.com/deployment/creating-an-application ) you wish to build.
9+ ### ` cached `
10+ ** Optional** Whether to utilise the docker cache during the build. Defaults to true.
11+
912## Outputs
1013### ` release `
1114The ID of the release that is created when the build completes.
Original file line number Diff line number Diff line change @@ -11,6 +11,10 @@ inputs:
1111 description :
1212 description : Convox build description
1313 required : false
14+ cached :
15+ description : Whether to utilise the docker cache during the build
16+ required : false
17+ default : true
1418outputs :
1519 release :
1620 description : Release ID of the created build
Original file line number Diff line number Diff line change 11#! /bin/sh
22echo " Building"
33export CONVOX_RACK=$INPUT_RACK
4- release=$( convox build --app $INPUT_APP --description " $INPUT_DESCRIPTION " --id)
4+ if [ " $INPUT_CACHED " = " false" ]; then
5+ release=$( convox build --app $INPUT_APP --description " $INPUT_DESCRIPTION " --id --no-cache)
6+ else
7+ release=$( convox build --app $INPUT_APP --description " $INPUT_DESCRIPTION " --id)
8+ fi
9+
510if [ -z " $release " ]
611then
712 echo " Build failed"
You can’t perform that action at this time.
0 commit comments