forked from convox/action-build
-
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.
breaking actions into their own repositories
- Loading branch information
0 parents
commit 8240d95
Showing
4 changed files
with
60 additions
and
0 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,20 @@ | ||
FROM ubuntu:18.04 | ||
|
||
LABEL version="1.0.0" | ||
LABEL repository="https://github.com/convox/action-build" | ||
LABEL homepage="https://convox.com/convox" | ||
LABEL maintainer="Convox <[email protected]>" | ||
|
||
LABEL "com.github.actions.name"="Convox Build" | ||
LABEL "com.github.actions.description"="Build an app to deploy on Convox" | ||
LABEL "com.github.actions.icon"="cloud" | ||
LABEL "com.github.actions.color"="blue" | ||
|
||
RUN apt-get -qq update && apt-get -qq -y install curl | ||
|
||
RUN curl -L https://convox.com/cli/linux/convox -o /tmp/convox \ | ||
&& mv /tmp/convox /usr/local/bin/convox \ | ||
&& chmod 755 /usr/local/bin/convox | ||
|
||
COPY entrypoint.sh /entrypoint.sh | ||
ENTRYPOINT ["/entrypoint.sh"] |
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,18 @@ | ||
# Convox Build Action | ||
This Action [builds](https://docs.convox.com/deployment/builds) an app based on a [convox.yml](https://docs.convox.com/application/convox-yml) so that app can be deployed on Convox | ||
|
||
## Inputs | ||
### `rack` | ||
**Required** The name of the [Convox Rack](https://docs.convox.com/introduction/rack) you wish to build against. | ||
### `app` | ||
**Required** The name of the [app](https://docs.convox.com/deployment/creating-an-application) you wish to build. | ||
## Outputs | ||
### `release` | ||
The ID of the release that is created when the build completes. | ||
## Example usage | ||
``` | ||
uses: convox/action-build@v1 | ||
with: | ||
rack: staging | ||
app: myapp | ||
``` |
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,16 @@ | ||
name: Convox Build | ||
description: Build a Convox app | ||
author: Convox | ||
inputs: | ||
rack: | ||
description: Convox Rack name | ||
required: true | ||
app: | ||
description: Convox app name | ||
required: true | ||
outputs: | ||
release: | ||
description: Release ID of the created build | ||
runs: | ||
using: docker | ||
image: Dockerfile |
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,6 @@ | ||
#!/bin/sh | ||
echo "Building" | ||
export CONVOX_RACK=$INPUT_RACK | ||
release=$(convox build --app $INPUT_APP --id) | ||
echo ::set-output name=release::$release | ||
echo ::set-env name=RELEASE::$release |