Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build Open Horizon Artifacts and Deploy to Dockerhub or GitHub Package Repository #95

Open
bencourliss opened this issue Oct 12, 2021 · 6 comments

Comments

@bencourliss
Copy link
Member

We need GitHub Actions to build artifacts for OpenHorizon repositories and deploy those artifacts to either Dockerhub or GitHub Container Registry or Github Package Repository.

Each OpenHorizon repository would create Docker images and tag them testing and deploy. In addition, the Anax repository would need to build RPM and Debian packages and deploy them to the GitHub Package Repository.

@Al-tekreeti
Copy link
Contributor

@bencourliss What is the event that triggers building them?

@bencourliss
Copy link
Member Author

@Al-tekreeti I'd say after a pull request build is complete or on a nightly basis. The build agent used to build this would have to be able to handle RPM as well as Debian packages. An Ubuntu image can do this as long as RPM is installed on it.

@Al-tekreeti
Copy link
Contributor

Al-tekreeti commented May 30, 2022

@bencourliss I am developing the following GitHub workflow in devops repo https://github.com/Al-tekreeti/devops/blob/oh-repos-build/.github/workflows/deploy-anax.yml. It builds and pushes to github container registry the following anax images: amd64_anax_k8s, amd64_anax, amd64_cloud-sync-service, amd64_edge-sync-service. Am I using the right makeFile targets? I just want to double check that with you. Thanks!
PS: Please copy the link above manually and paste it into a new browser tab if you want to see the workflow yml file.

@Al-tekreeti
Copy link
Contributor

@bencourliss Another question: GitHub packages repo does not support deb and rpm packages. Is there any workaround I am not aware of?

@bencourliss
Copy link
Member Author

As mentioned in our DevOps WG meeting, we publish the Debian and RPM packages during a release of Anax (https://github.com/open-horizon/anax/releases). This is done today via internal Jenkins pipelines approixmately every other Thursday. We need GitHub actions to create the Deb and RPM agent files for the architectures we support. What needs to be decided is the cadence and what triggers the builds. Ideally we'd have a build triggered from a successful merge of a PR and that creates the testing tag for the Docker images. The Deb and RPM packages will need to live somewhere else for consumption.

@Al-tekreeti
Copy link
Contributor

Al-tekreeti commented Jun 21, 2022

To build deb and rpm tar files, VERSION and BUILD_NUMBER variables need to be passed to the makefile. Are there any guidelines on how to choose them? Also, GitHub actions do support manual triggering using "workflow_dispatch" option.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants