Implement build, publish and run actions

This commit is contained in:
Alexey Igrychev
2020-05-28 10:31:06 +01:00
parent 95680c850e
commit b98d747c61
16 changed files with 133751 additions and 5 deletions

View File

@@ -3,12 +3,15 @@
</p>
___
This action set allows you to organize CI/CD with GitHub Actions and [werf](https://github.com/flant/werf). The set consists of four independent complex actions:
This action set allows you to organize CI/CD with GitHub Actions and [werf](https://github.com/flant/werf). The set consists of several independent and complex actions:
- [flant/werf-actions/converge](https://github.com/flant/werf-actions/tree/master/converge)
- [flant/werf-actions/build-and-publish](https://github.com/flant/werf-actions/tree/master/build-and-publish)
- [flant/werf-actions/build](https://github.com/flant/werf-actions/tree/master/build)
- [flant/werf-actions/publish](https://github.com/flant/werf-actions/tree/master/build)
- [flant/werf-actions/deploy](https://github.com/flant/werf-actions/tree/master/deploy)
- [flant/werf-actions/dismiss](https://github.com/flant/werf-actions/tree/master/dismiss)
- [flant/werf-actions/run](https://github.com/flant/werf-actions/tree/master/run)
- [flant/werf-actions/cleanup](https://github.com/flant/werf-actions/tree/master/cleanup)
Each action combines all the necessary steps in itself and logic may be divided into __environment setup__ and launching the corresponding command.
@@ -149,6 +152,29 @@ dismiss:
env: production
```
### run
```yaml
run:
name: Run
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Run
uses: flant/werf-actions/run@master
with:
image: backend
args: rails server
kube-config-base64-data: ${{ secrets.KUBE_CONFIG_BASE64_DATA }}
env:
WERF_DOCKER_OPTIONS: "-d -p 3000:3000"
```
### cleanup
```yaml