netgroup-polito / CrownLabs

Kubernetes-based Remote Laboratories
https://crownlabs.polito.it
Apache License 2.0
107 stars 42 forks source link

GitHub actions: externalize build matrix #773

Closed giorio94 closed 2 years ago

giorio94 commented 2 years ago

Description

This PR modifies the build workflow, to enable a more granular control on which containers are build depending on the triggering event. Specifically, the matrix definition is moved to an external json file, that is read and optionally filtered by a custom action during the pre-processing step. The current configuration ensures that all the core images are always built, while user environments are built only in case of stable releases and if the /deploy-staging command is triggered with an appropriate flag.

How Has This Been Tested?

kingmakerbot commented 2 years ago

Hi @giorio94. Thanks for your PR.

I am @kingmakerbot. You can interact with me issuing a slash command in the first line of a comment. Currently, I understand the following commands:

Make sure this PR appears in the CrownLabs changelog, adding one of the following labels:

giorio94 commented 2 years ago

/rebase

giorio94 commented 2 years ago

/merge