-
Notifications
You must be signed in to change notification settings - Fork 92
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
run the e2e on the fork Signed-off-by: Magnus Kulke <[email protected]>
- Loading branch information
Showing
3 changed files
with
129 additions
and
54 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
name: mgns e2e tests | ||
|
||
on: | ||
pull_request: | ||
types: | ||
- opened | ||
- synchronize | ||
push: | ||
branches: | ||
- mkulke/add-scratch-space-for-sandbox | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
e2e: | ||
uses: ./.github/workflows/e2e_run_all.yaml | ||
if: false | ||
with: | ||
caa_image_tag: ci-pr${{ github.event.number }} | ||
git_ref: ${{ github.sha }} | ||
podvm_image_tag: ci-pr${{ github.event.number }} | ||
registry: ghcr.io/${{ github.event.pull_request.head.repo.owner.login }}/confidential-containers | ||
secrets: inherit | ||
|
||
docker: | ||
runs-on: ubuntu-24.04 | ||
services: | ||
registry: | ||
image: registry:2 | ||
ports: | ||
- 5000:5000 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Setup libvirt | ||
working-directory: src/cloud-api-adaptor | ||
run: libvirt/config_libvirt.sh | ||
|
||
- name: Create cluster | ||
working-directory: src/cloud-api-adaptor | ||
run: libvirt/kcli_cluster.sh create | ||
|
||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v3 | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
with: | ||
driver-opts: network=host | ||
|
||
- name: Create Dockerfile | ||
run: | | ||
mkdir docker-test | ||
cd docker-test | ||
touch ohai | ||
cat <<EOF > Dockerfile | ||
FROM scratch | ||
COPY ohai / | ||
EOF | ||
- name: Build and push to local registry | ||
uses: docker/build-push-action@v6 | ||
with: | ||
push: true | ||
tags: localhost:5000/name/app:latest | ||
context: ./docker-test | ||
|
||
- name: Inspect | ||
run: | | ||
docker buildx imagetools inspect localhost:5000/name/app:latest |
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
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