Setting up Github Actions and Quay.io#
Using the official OPE tool, you can easily create, update, manage, and publish OPE projects from the command line. Follow the instructions to install this tool here.
In your github, create a new fork of OPEEFFORT testing repository
Go to your fork and click on settings. Set ‘container-base-ope’ as the default branch
Log in to your quay.io and link your quay.io with your Github account
Create a new repo in quay.io.
Enter your repo name, select “public”, select “Link to a GitHub Repository Push”, then click on “Create”
Then select your name in the organization section, select OPE-Testing in the Select Repository section Select Trigger only on branches and tags matching a regular expression in Configure Trigger section Select Tag manifest with the branch or tag name and Add latest tag if on default branch in the Configure Tagging section Select location of Dockerfile to build when trigger is involed, ex: /base/Dockerfile. Make sure to double-check that “container-base-ope” is your default branch If setup is succesful, you should see a Ready to go! page
CLick continue, Quay.io will generate a SSH key. You don’t have to do anything. Quay.io will automatically set up in your GitHub repo Let’s go back to the Github Repository you just forked. Under base folder, change the following file to your information: (1) ope-book -> This is your quay.io repo name (2) ope_book_user -> this is your quay.io account name (3) ope_registry_user -> this is also your quay.io account name (4) Dockerfile: make sure you copy from kevinge7/OPE-Testing Under .github/workflows folder: make sure you copy from kevinge7/OPE-Testing Now copy everything in Master_container_test.yaml paste the into Github Action.
Now in your forked repo, go to settings, and click on the Actions tab in the left sidebar Create your secrets: The variable name should be exactly the same as the picture shows. The value should be your quay.io account name and the password you use to log in to quay.io. ALL DONE! Now you can run your Github Action