diff --git a/.github/actions/save-logs/action.yaml b/.github/actions/save-logs/action.yaml new file mode 100644 index 0000000..fbb3bfc --- /dev/null +++ b/.github/actions/save-logs/action.yaml @@ -0,0 +1,18 @@ +name: save-logs +description: "Save debug logs" + +runs: + using: composite + steps: + - name: Fix log permissions + run: | + sudo chown $USER /tmp/zarf-*.log || echo "" + sudo chown $USER /tmp/uds-*.log || echo "" + shell: bash + + - uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3.1.3 + with: + name: debug-log + path: | + /tmp/zarf-*.log + /tmp/uds-*.log diff --git a/.github/actions/setup/action.yaml b/.github/actions/setup/action.yaml new file mode 100644 index 0000000..4f97160 --- /dev/null +++ b/.github/actions/setup/action.yaml @@ -0,0 +1,30 @@ +# action.yml +name: "Setup Environment" +description: "UDS Environment Setup" + +runs: + using: "composite" + steps: + - name: Install Zarf + uses: defenseunicorns/setup-zarf@main + with: + # renovate: datasource=github-tags depName=defenseunicorns/zarf versioning=semver + version: v0.31.1 + download-init-package: true + + - name: Use Node.js latest + uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4.0.0 + with: + node-version: 20 + + - name: Install k3d + shell: bash + run: curl -s https://raw.githubusercontent.com/k3d-io/k3d/main/install.sh | TAG=v5.6.0 bash + + - name: Set up Homebrew + uses: Homebrew/actions/setup-homebrew@master + + - name: Install UDS CLI + shell: bash + # renovate: datasource=github-tags depName=defenseunicorns/uds-cli versioning=semver + run: brew install defenseunicorns/tap/uds@0.5.2