This Github action makes it easier for you to install and configure molnctl.
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.
- 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>
The action only supports Linux for now.