Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/reubenmiller/setup-go-c8y-cli

Setup go-c8y-cli for use in GitHub workflows
https://github.com/reubenmiller/setup-go-c8y-cli

c8y cumulocity-iot github-actions go-c8y-cli

Last synced: about 1 month ago
JSON representation

Setup go-c8y-cli for use in GitHub workflows

Awesome Lists containing this project

README

        

# setup-go-c8y-cli

[![Actions Status](https://github.com/reubenmiller/setup-go-c8y-cli/workflows/build-test/badge.svg)](https://github.com/reubenmiller/setup-go-c8y-cli/actions)

This action sets up a binary in \$PATH for use in actions

```yaml
env:
C8Y_HOST: '${{ secrets.C8Y_HOST }}'
C8Y_USER: '${{ secrets.C8Y_USER }}'
C8Y_PASSWORD: '${{ secrets.C8Y_PASSWORD }}'
steps:
- uses: actions/checkout@v3
- uses: reubenmiller/setup-go-c8y-cli@main
- run: |
c8y microservice create --file myfile.zip
```

You can customize some of the go-c8y-cli setup options:

```yaml
env:
C8Y_HOST: '${{ secrets.C8Y_HOST }}'
C8Y_USER: '${{ secrets.C8Y_USER }}'
C8Y_PASSWORD: '${{ secrets.C8Y_PASSWORD }}'
steps:
- uses: actions/checkout@v3
- uses: reubenmiller/setup-go-c8y-cli@main
with:
version: '2.36.0'
showVersion: false
showTenant: false
- run: |
c8y microservice create --file myfile.zip
```