I’ve been checking out Github’s new Actions CI/CD solution, and looking at https://www.astronomer.io/docs/ci-cd/ it seems like it wouldn’t be too difficult to come up with a GH Action for Astronomer Airflow automated deployment.
Anyone tried this yet or interested in collaborating on a prototype GH action? Or maybe the Astronomer devs interested in working with a motivated user to craft one? I’ve got the GH Actions half in my head, but not as familiar with the Astronomer end of the CI/CD process.
I’d be happy to help. never tried it myself, but just set up one for Git Lab. I bet they are pretty similar. From astro point of view, you basically just need to build your image, then push it to your docker registry. you authenticate with a service account token you create from the Orbit UI. In the doc yo posted, use the Gitlab as an example. It’s the most up to date.
Yep, sounds pretty straight forward. And there are already a few published Github Action templates out there doing similar.
I’m currently using https://github.com/marketplace/actions/publish-docker , which pairs with another action to both 1) login to an ECR registry and 2) publish the image to it. This seems like a close enough pattern to follow.
@ andrewcstewart I followed all your mentioned steps. All things worked fine here except one the DAG did not push to the Airflow and I am not able to see any DAG on Airflow.