use env vvariable to use the sha commit hash #89
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 GitHub Actions / Strict confinement test Microk8sInvalid workflow file
|
||
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 |