Skip to content

Commit

Permalink
CI: add workflow for openssl test on baremetal SNP
Browse files Browse the repository at this point in the history
  • Loading branch information
Freax13 committed Aug 2, 2024
1 parent 08d9004 commit f30c511
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/actionlint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
self-hosted-runner:
labels:
- snp
55 changes: 55 additions & 0 deletions .github/workflows/e2e_openssl_baremetal.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: e2e test openssl baremetal

on:
workflow_dispatch:
inputs:
skip-undeploy:
description: "Skip undeploy"
required: false
type: boolean
default: false
pull_request:
paths-ignore:
- dev-docs/**
- docs/**
- rfc/**

env:
container_registry: ghcr.io/edgelesssys
DO_NOT_TRACK: 1

jobs:
test:
runs-on:
labels: snp
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: Log in to ghcr.io Container registry
uses: docker/login-action@0d4c9c5ea7693da7b068278f7b52bda2a190a446 # v3.2.0
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- uses: nicknovitski/nix-develop@a2060d116a50b36dfab02280af558e73ab52427d # v1.1.0
- name: Create justfile.env
run: |
cat <<EOF > justfile.env
container_registry=${{ env.container_registry }}
EOF
- name: Build and prepare deployments
run: |
just coordinator initializer openssl port-forwarder node-installer K3s-QEMU-SNP
- name: E2E Test
run: |
nix shell .#contrast.e2e --command openssl.test -test.v \
--image-replacements workspace/just.containerlookup \
--namespace-file workspace/e2e.namespace \
--platform K3s-QEMU-SNP \
--skip-undeploy="${{ inputs.skip-undeploy && 'true' || 'false' }}"
- name: Cleanup
if: cancelled() && !inputs.skip-undeploy
run: |
kubectl delete ns "$(cat workspace/e2e.namespace)" --timeout 5m

0 comments on commit f30c511

Please sign in to comment.