Skip to content

Commit

Permalink
WIP: Add tests of the images built by a PR (#94)
Browse files Browse the repository at this point in the history
* Allow PRs to build images and make sure we delete them

* Add envvar to pick up OpenStack credentials

* Disable the desktop for now

* Upload images + manifest for testing PRs

* Rework to address limitations

* Fix CI errors

* Only purge images on success

* Test images built on main also

* Fix typo

* Use 'set -x' instead of limited logging
  • Loading branch information
mkjpryor authored Dec 4, 2023
1 parent 376fc87 commit faf673f
Show file tree
Hide file tree
Showing 11 changed files with 341 additions and 398 deletions.
174 changes: 0 additions & 174 deletions .github/builds.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,197 +5,23 @@
- name: ubuntu-desktop
template: linux-desktop
var-files: common,kvm,linux,ubuntu-jammy
path-filters: |
paths:
- .github/workflows/pr.yml
- bin/build-image
- bin/builds-as-json
- bin/env-vars
- bin/setup
- config.pkr.hcl
- requirements.yml
- env/*/common.env
- env/*/kvm.env
- env/*/linux.env
- env/*/ubuntu-jammy.env
- vars/*/common.json
- vars/*/kvm.json
- vars/*/linux.json
- vars/*/ubuntu-jammy.json
- packer/linux-desktop.pkr.hcl
- ansible/linux-webconsole.yml
- ansible/roles/linux-webconsole/**
- ansible/roles/linux-ansible-init/**
- ansible/roles/linux-podman/**
- ansible/roles/linux-data-volumes/**
- ansible/roles/linux-guacamole/**
- ansible/roles/linux-monitoring/**
- ansible/roles/linux-zenith-client/**
# - name: ubuntu-rdp-gateway
# template: linux-rdp-gateway
# var-files: common,kvm,linux,ubuntu-focal
# path-filters: |
# paths:
# - .github/workflows/pr.yml
# - bin/build-image
# - bin/builds-as-json
# - bin/env-vars
# - bin/setup
# - config.pkr.hcl
# - requirements.yml
# - env/*/common.env
# - env/*/kvm.env
# - env/*/linux.env
# - env/*/ubuntu-focal.env
# - vars/*/common.json
# - vars/*/kvm.json
# - vars/*/linux.json
# - vars/*/ubuntu-focal.json
# - packer/linux-rdp-gateway.pkr.hcl
# - ansible/linux-rdp-gateway.yml
# - ansible/roles/linux-rdp-gateway/**
# - ansible/roles/linux-ansible-init/**
# - ansible/roles/linux-podman/**
# - ansible/roles/linux-data-volumes/**
# - ansible/roles/linux-guacamole/**
# - ansible/roles/linux-zenith-client/**

- name: jupyter-repo2docker
template: jupyter-repo2docker
var-files: common,kvm,linux,ubuntu-jammy
path-filters: |
paths:
- .github/workflows/pr.yml
- bin/build-image
- bin/builds-as-json
- bin/env-vars
- bin/setup
- config.pkr.hcl
- requirements.yml
- env/*/common.env
- env/*/kvm.env
- env/*/linux.env
- env/*/ubuntu-jammy.env
- vars/*/common.json
- vars/*/kvm.json
- vars/*/linux.json
- vars/*/ubuntu-jammy.json
- packer/jupyter-repo2docker.pkr.hcl
- ansible/jupyter-repo2docker.yml
- ansible/roles/jupyter-repo2docker/**
- ansible/roles/linux-ansible-init/**
- ansible/roles/linux-podman/**
- ansible/roles/linux-data-volumes/**
- ansible/roles/linux-monitoring/**
- ansible/roles/linux-zenith-client/**

- name: linux-rstudio
template: linux-rstudio
var-files: common,kvm,linux,ubuntu-jammy
path-filters: |
paths:
- .github/workflows/pr.yml
- bin/build-image
- bin/builds-as-json
- bin/env-vars
- bin/setup
- config.pkr.hcl
- requirements.yml
- env/*/common.env
- env/*/kvm.env
- env/*/linux.env
- env/*/ubuntu-jammy.env
- vars/*/common.json
- vars/*/kvm.json
- vars/*/linux.json
- vars/*/ubuntu-jammy.json
- packer/linux-rstudio.pkr.hcl
- ansible/linux-rstudio.yml
- ansible/roles/linux-rstudio/**
- ansible/roles/linux-ansible-init/**
- ansible/roles/linux-monitoring/**
- ansible/roles/linux-podman/**
- ansible/roles/linux-data-volumes/**
- ansible/roles/linux-zenith-client/**

- name: kubernetes-1-26-jammy
template: kubernetes
var-files: common,kvm,linux,ubuntu-jammy,kubernetes,kubernetes_1_26
path-filters: |
paths:
- .github/workflows/pr.yml
- bin/build-image
- bin/builds-as-json
- bin/env-vars
- bin/setup
- config.pkr.hcl
- requirements.yml
- env/*/common.env
- env/*/kvm.env
- env/*/linux.env
- env/*/ubuntu-jammy.env
- env/*/kubernetes.env
- env/*/kubernetes_1_26.env
- vars/*/common.json
- vars/*/kvm.json
- vars/*/linux.json
- vars/*/ubuntu-jammy.json
- vars/*/kubernetes.json
- vars/*/kubernetes_1_26.json
- packer/kubernetes.pkr.hcl
- vendor/image-builder/**

- name: kubernetes-1-27-jammy
template: kubernetes
var-files: common,kvm,linux,ubuntu-jammy,kubernetes,kubernetes_1_27
path-filters: |
paths:
- .github/workflows/pr.yml
- bin/build-image
- bin/builds-as-json
- bin/env-vars
- bin/setup
- config.pkr.hcl
- requirements.yml
- env/*/common.env
- env/*/kvm.env
- env/*/linux.env
- env/*/ubuntu-jammy.env
- env/*/kubernetes.env
- env/*/kubernetes_1_27.env
- vars/*/common.json
- vars/*/kvm.json
- vars/*/linux.json
- vars/*/ubuntu-jammy.json
- vars/*/kubernetes.json
- vars/*/kubernetes_1_27.json
- packer/kubernetes.pkr.hcl
- vendor/image-builder/**

- name: kubernetes-1-28-jammy
template: kubernetes
var-files: common,kvm,linux,ubuntu-jammy,kubernetes,kubernetes_1_28
path-filters: |
paths:
- .github/workflows/pr.yml
- bin/build-image
- bin/builds-as-json
- bin/env-vars
- bin/setup
- config.pkr.hcl
- requirements.yml
- env/*/common.env
- env/*/kvm.env
- env/*/linux.env
- env/*/ubuntu-jammy.env
- env/*/kubernetes.env
- env/*/kubernetes_1_28.env
- vars/*/common.json
- vars/*/kvm.json
- vars/*/linux.json
- vars/*/ubuntu-jammy.json
- vars/*/kubernetes.json
- vars/*/kubernetes_1_28.json
- packer/kubernetes.pkr.hcl
- vendor/image-builder/**
Loading

0 comments on commit faf673f

Please sign in to comment.