Merge pull request #269 from ClubCedille/kubewall-test #246
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: Apply omni config files | |
on: | |
push: | |
branches: master | |
jobs: | |
apply: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- run: | | |
curl -L -o omnictl https://cedille.omni.siderolabs.io/omnictl/omnictl-linux-amd64 | |
chmod +x omnictl | |
- run: | | |
yq eval-all '. as $item ireduce ({}; . *+ $item )' omni/*.acl.yaml > omni-acl.yaml | |
./omnictl apply -f omni-acl.yaml | |
env: | |
OMNI_ENDPOINT: ${{vars.OMNI_ENDPOINT}} | |
OMNI_SERVICE_ACCOUNT_KEY: ${{secrets.OMNI_SERVICE_ACCOUNT_KEY}} |