Skip to content

Latest commit

 

History

History
48 lines (40 loc) · 1.29 KB

README.md

File metadata and controls

48 lines (40 loc) · 1.29 KB

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.