Skip to content

use env vvariable to use the sha commit hash #89

use env vvariable to use the sha commit hash

use env vvariable to use the sha commit hash #89

Workflow file for this run

name: Strict confinement test Microk8s
on: [push]
jobs:
test:
strategy:
matrix:
version:
["1.25-strict/stable", "1.26-strict/stable", "1.27-strict/stable"]
runs-on: ubuntu-latest
env:
GITHUB_SHA: ${{ github.sha }}
name: A job to install MicroK8s with strict confinement
steps:
- uses: balchua/microk8s-actions@${{ env.GITHUB_SHA }}

Check failure on line 15 in .github/workflows/strict-test.yaml

View workflow run for this annotation

GitHub Actions / Strict confinement test Microk8s

Invalid workflow file

The workflow is not valid. .github/workflows/strict-test.yaml (Line: 15, Col: 15): Unrecognized named-value: 'env'. Located at position 1 within expression: env.GITHUB_SHA
with:
channel: "${{ matrix.version }}"
devMode: "true"
addons: '[ "dns", "hostpath-storage"]'
- name: Test MicroK8s commands
id: microk8s-commands
run: |
set -ex
sudo microk8s status
sudo microk8s kubectl get pods -A