Skip to content

Commit 8240d95

Browse files
committed
breaking actions into their own repositories
0 parents  commit 8240d95

File tree

4 files changed

+60
-0
lines changed

4 files changed

+60
-0
lines changed

Dockerfile

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
FROM ubuntu:18.04
2+
3+
LABEL version="1.0.0"
4+
LABEL repository="https://github.com/convox/action-build"
5+
LABEL homepage="https://convox.com/convox"
6+
LABEL maintainer="Convox <[email protected]>"
7+
8+
LABEL "com.github.actions.name"="Convox Build"
9+
LABEL "com.github.actions.description"="Build an app to deploy on Convox"
10+
LABEL "com.github.actions.icon"="cloud"
11+
LABEL "com.github.actions.color"="blue"
12+
13+
RUN apt-get -qq update && apt-get -qq -y install curl
14+
15+
RUN curl -L https://convox.com/cli/linux/convox -o /tmp/convox \
16+
&& mv /tmp/convox /usr/local/bin/convox \
17+
&& chmod 755 /usr/local/bin/convox
18+
19+
COPY entrypoint.sh /entrypoint.sh
20+
ENTRYPOINT ["/entrypoint.sh"]

README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Convox Build Action
2+
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
3+
4+
## Inputs
5+
### `rack`
6+
**Required** The name of the [Convox Rack](https://docs.convox.com/introduction/rack) you wish to build against.
7+
### `app`
8+
**Required** The name of the [app](https://docs.convox.com/deployment/creating-an-application) you wish to build.
9+
## Outputs
10+
### `release`
11+
The ID of the release that is created when the build completes.
12+
## Example usage
13+
```
14+
uses: convox/action-build@v1
15+
with:
16+
rack: staging
17+
app: myapp
18+
```

action.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Convox Build
2+
description: Build a Convox app
3+
author: Convox
4+
inputs:
5+
rack:
6+
description: Convox Rack name
7+
required: true
8+
app:
9+
description: Convox app name
10+
required: true
11+
outputs:
12+
release:
13+
description: Release ID of the created build
14+
runs:
15+
using: docker
16+
image: Dockerfile

entrypoint.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/bin/sh
2+
echo "Building"
3+
export CONVOX_RACK=$INPUT_RACK
4+
release=$(convox build --app $INPUT_APP --id)
5+
echo ::set-output name=release::$release
6+
echo ::set-env name=RELEASE::$release

0 commit comments

Comments
 (0)