Skip to content

molnett/setup-molnctl-action

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Github Action for setting up molnctl

This Github action makes it easier for you to install and configure molnctl.

Usage

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
    - name: Checkout
      uses: actions/checkout@v2
    - name: Molnctl Setup
      uses: molnett/setup-molnctl-action@v2
      with:
        api-token-client-id: ${{ secrets.MOLNETT_CLIENT_ID }}
        api-token-client-secret: ${{ secrets.MOLNETT_CLIENT_SECRET }}
        default-org: <your-org>
    - name: Build & Push Image to Molnett
      run: |
        molnctl auth docker
        IMAGE_NAME=`molnctl svcs image-name --update-manifest molnett.yaml`
        docker buildx build . -t $IMAGE_NAME
        docker push $IMAGE_NAME
    - name: Deploy Service
      run: molnctl deploy
    - name: Cleanup
      run: rm -r ~/.config/molnett

molnctl is configured and available after running this action.

Using a specific version of molnctl

    - name: Molnctl Setup
      uses: molnett/setup-molnctl-action@v2
      with:
        version: v0.1.6
        api-token-client-id: ${{ secrets.MOLNETT_CLIENT_ID }}
        api-token-client-secret: ${{ secrets.MOLNETT_CLIENT_SECRET }}
        default-org: <your-org>

OS support

The action only supports Linux for now.

About

Github action for setting up molnctl

Resources

License

Stars

Watchers

Forks