Skip to content
This repository has been archived by the owner on Mar 16, 2024. It is now read-only.

acorn-io/actions-setup

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

actions-setup

build-test

GitHub action to install Acorn CLI and spin up a k3s cluster

Quick Start

name: My Workflow
on:
  push: {}
jobs:
  publish:
    steps:
    - uses: actions/checkout@master
    - uses: acorn-io/actions-setup@v2
    - run: |
      acorn --version # acorn build, acorn run, etc

Options

Key Default Description
acorn-init true Run acorn init to install the runtime into the cluster
acorn-version "latest" Version of Acorn to install
kubeconfig (none) Contents of a kubeconfig to use instead of spinning up k3s
k3s-cleanup true Cleanup the k3s container after job completion
k3s-install true Spin up a container running k3s for acorn to run in
k3s-version "latest" Version of K3s to install

Bring-your-own-Cluster

If you already have a cluster to run Acorn against, you can point to it instead of spinning up k3s:

name: My Workflow
on:
  push: {}
jobs:
  publish:
    steps:
    - uses: actions/checkout@master
    - uses: acorn-io/actions-setup@v2
      with:
        kubeconfig:  ${{secrets.YOUR_KUBECONFIG}}
        acorn-init: true # If acorn is already installed, set this to false
      run: |
        acorn --version # acorn build, acorn run, etc

License

Copyright (c) 2022 Acorn Labs, Inc.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.