Make Zarf available to your GitHub Actions workflows.
This action will optionally download a Zarf init package. To learn more about Zarf init packages and their use-cases, see the Zarf docs.
uses: defenseunicorns/setup-zarf@v1
with:
version: <version> # Optional. Defaults to latest.
download-init-package: true # Optional. Defaults to false.
jobs:
create_pacakge:
runs-on: ubuntu-latest
name: Create my cool Zarf Package
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 1
- name: Install Zarf
uses: defenseunicorns/setup-zarf@v1
with:
version: v0.24.3
- name: Create the package
run: zarf package create --confirm
jobs:
deploy_package:
runs-on: ubuntu-latest
name: Create & deploy my cool Zarf Package
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 1
- name: Install Zarf
uses: defenseunicorns/setup-zarf@v1.0.1
with:
version: v0.24.3
download-init-package: true
- name: Create the package
run: zarf package create --confirm
- name: Create a k3d cluster
run: |
curl -s https://raw.githubusercontent.com/k3d-io/k3d/main/install.sh | bash
k3d cluster delete && k3d cluster create
- name: Initialize the cluster
run: zarf init --confirm
- name: Deploy the package
run: zarf deploy --confirm
- name: View the deployed package
run: zarf package list
- Optional
- Default: latest release
- Note: Include the
v
in your version (e.g.,v0.24.3
) - Check out the Zarf releases page to see available versions
- Optional
- Default:
false