Skip to content
This repository has been archived by the owner on Oct 6, 2021. It is now read-only.

Commit

Permalink
initial
Browse files Browse the repository at this point in the history
  • Loading branch information
peter-svensson committed Nov 12, 2019
0 parents commit 8fe7d26
Show file tree
Hide file tree
Showing 6 changed files with 99 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*.iml
.idea
5 changes: 5 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
FROM buildtool/build-tools

ADD ./entrypoint.sh /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]

21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2019 buildtool

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
54 changes: 54 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
<p align="center">
<h3 align="center">Buildtool Deploy Action</h3>
<p align="center"><a href="https://github.com/features/actions">GitHub Action</a> for <a href="https://buildtools.io/commands/#deploy">Buildtool Deploy</a></p>
<p align="center">
<a href="https://github.com/buildtool/deploy-action/releases/latest"><img alt="GitHub release" src="https://img.shields.io/github/release/buildtool/deploy-action.svg?logo=github"></a>
<a href="https://github.com/marketplace/actions/github-action-for-deploy"><img alt="GitHub marketplace" src="https://img.shields.io/badge/marketplace-deploy--action-blue?logo=github"></a>
</p>
</p>

---

> **:warning: Note:** To use this action, you must have access to the [GitHub Actions](https://github.com/features/actions) feature. GitHub Actions are currently only available in public beta. You can [apply for the GitHub Actions beta here](https://github.com/features/actions/signup/).
## Usage

Below is a simple snippet to use this action.

```yaml
name: buildtool

on:
pull_request:
push:

jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v1
-
name: Run build-tools deploy command
uses: buildtool/deploy-action@v1
with:
target: production
```
## Customizing
### Inputs
Following inputs can must be provided as `step.with` keys

| Name | Type | Description |
|--------------|---------|------------------------------------------------|
| `target` | String | Which target [environment] to deploy to |


## License

MIT. See `LICENSE` for more details.

[environment]: https://buildtools.io/environments/
14 changes: 14 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: 'GitHub Action for Deploy'
description: 'Build docker image'
inputs:
target:
description: 'specify which target to deploy to'
required: true
runs:
using: 'docker'
image: 'Dockerfile'
args:
- ${{ inputs.target }}
branding:
icon: 'play'
color: 'green'
3 changes: 3 additions & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env bash

deploy ${@:1}

0 comments on commit 8fe7d26

Please sign in to comment.