Skip to content

Commit

Permalink
docs: added actions (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
peter-svensson authored Nov 12, 2019
1 parent 52d14e9 commit c80a455
Showing 1 changed file with 37 additions and 3 deletions.
40 changes: 37 additions & 3 deletions www/content/ci.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,37 @@ deploy-to-prod:
````

### Github Actions
Build-tools can also be used within our official build-tools actions through [GitHub Actions][actions]

TODO
You can create a workflow for pushing your releases by putting YAML configuration to `.github/workflows/build.yml`.

Below is a simple snippet to use the [build-action] and [push-action] in your workflow:

```yaml
name: Buildtool
on: [push]
jobs:
build:
runs-on: ubuntu-latest
env:
DOCKERHUB_USERNAME: sparetimecoders
DOCKERHUB_PASSWORD: ${{ secrets.DOCKERHUB_PASSWORD }}
DOCKERHUB_NAMESPACE: sparetimecoders
steps:
- name: Checkout
uses: actions/checkout@v1
- name: build
uses: buildtool/build-action@v1
- name: push
uses: buildtool/push-action@v1
```

Read more about our actions here:
* [build-action]
* [push-action]
* [deploy-action]

> For detailed intructions please follow GitHub Actions [workflow syntax][syntax].

### TeamCity
[TeamCity] can be configured with a `.teamcity/settings.kts` file in your project.
Expand Down Expand Up @@ -163,6 +192,11 @@ jobs:

[Buildkite]: https://buildkite.com
[Gitlab CI]: https://docs.gitlab.com/ce/ci
[github actions]: https://github.com/features/actions
[Github Actions]: https://github.com/features/actions
[teamcity]: https://www.jetbrains.com/teamcity
[azure devops]: https://azure.microsoft.com/en-us/services/devops/pipelines/
[azure devops]: https://azure.microsoft.com/en-us/services/devops/pipelines/
[build-action]: https://github.com/buildtool/build-action
[push-action]: https://github.com/buildtool/push-action
[deploy-action]: https://github.com/buildtool/deploy-action
[actions]: https://github.com/features/actions
[syntax]: https://help.github.com/en/articles/workflow-syntax-for-github-actions#About-yaml-syntax-for-workflows

0 comments on commit c80a455

Please sign in to comment.