feat: refactor the network namespace #931
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
--- | |
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json | |
name: "e2e" | |
on: | |
workflow_dispatch: | |
pull_request: | |
branches: ["main"] | |
paths-ignore: | |
- kubernetes/** | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.number || github.ref }} | |
cancel-in-progress: true | |
jobs: | |
configure: | |
if: ${{ github.repository == 'onedr0p/cluster-template' }} | |
name: configure | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
config-files: | |
- talos | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup mise | |
uses: jdx/mise-action@v2 | |
env: | |
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" | |
- name: Install dependencies | |
run: mise run deps | |
- name: Run age task | |
run: task template:generate-age-key | |
- name: Run init task | |
run: | | |
task init | |
cp ./.github/tests/config-${{ matrix.config-files }}.yaml ./config.yaml | |
export TEMPLATE_AGE_PUBLIC_KEY=$(sed -n 's/# public key: //gp' age.key) | |
envsubst < ./config.yaml > ./config.yaml.tmp && mv ./config.yaml.tmp ./config.yaml | |
- name: Run configure task | |
run: task configure --yes | |
- name: Run generate talconfig task | |
run: task talos:generate-config | |
- name: Run cleanup task | |
run: task template:tidy --yes | |
- name: Run flux-local test | |
uses: docker://ghcr.io/allenporter/flux-local:v7.0.0@sha256:abf237e31d20de26f8a4b08e588cc927cb0a9f0ecf90d04bada00f393b919354 | |
with: | |
args: test --enable-helm --path /github/workspace/kubernetes/flux/cluster |