-
-
Notifications
You must be signed in to change notification settings - Fork 848
Open
hackforla/check-ghpages-versions
#21Labels
Complexity: LargeFeature: Dockerready for dev leadIssues that tech leads or merge team members need to follow up onIssues that tech leads or merge team members need to follow up onrole: back end/devOpsTasks for back-end developersTasks for back-end developerssize: 2ptCan be done in 7-12 hoursCan be done in 7-12 hours
Milestone
Description
Overview
We need to implement a "Keepalive Workflow" for the Daniel Ridge bot so that it performs its function of checking the dependencies for the Docker image and when necessary, updating the Dockerfile, which triggers the process of updating our Docker hub image.
Details
- The Daniel Ridge Bot repo check-ghpages-versions contains scheduled workflows to automatically check the dependencies for the Docker image created from ghpages-docker. If dependencies are out of date, an issue is automatically created in github.com/hackforla/ops to update the ghphages-docker Dockerfile, which causes ghpages-docker to build a new image and push it to Docker Hub.
- Due to inactivity, scheduled workflows in the Daniel Ridge Bot repo were disabled, and as a result, the Docker image has not been updated in over a year.
- In Investigate use of Daniel Ridge bot its repo 'check-ghpages-versions' #5897 the recommendation was made to use the Keepalive Workflow GitHub action to permanently enable the workflow check-gh-pages-version.yml workflow from check-ghpages-versions
Action Items
- Clone the repository check-ghpages-versions.
- Read and understand Daniel Ridge Bot Ops Wiki, Keep Alive Workflow and
How To Use section of the Keep-Alive Workflow documentation- Note the section "Moving the keepalive workflow into its own distinct job is strongly recommended for better security" and understand the sample code
- Incorporate the Keepalive Workflow GitHub action so that it will prevent workflows from being disabled due to inactivity in the repo
- For testing, modify both the workflows so that they create the issue in your repository
-
.github/workflows/check-ruby-version.yml -
.github/workflows/check-gh-pages-version.yml
-
- create a PAT in your repository, then a secret called test_Daniel_Ridge_PAT and modify each workflow to use that secret in place of GH_TOKEN: ${{ secrets.Daniel_Ridge_PAT }}
- As described in How To Use section of the Keep-Alive Workflow documentation, workflow permissions must be set. Go to repository settings, Click on Actions > General. Update the "Workflow permissions" to "Read and write permissions". Click on save.
- On the wiki page https://github.com/hackforla/ops/wiki/@danielridgebot-Ops-Wiki, add a top-level bullet under
check-gh-pages-version,ymlexplaning the addition of the KeepAlive Workflow action - Test by running
.github/workflows/check-gh-pages-version.ymland verify that the appropriate issues were created - Restore the original secret in both workflows
- Create a PR in https://github.com/danielridgebot/check-ghpages-versions. Put this issue in "Questions/In Review" and apply the label "ready for dev lead".
Resources/Instructions
check-gh-pages-version.yml
Keep Alive Workflow
How To Use section of the Keep-Alive Workflow documentation
- This issue was created from ER: New Developers with Mac processors are having problems running docker image #5644
Metadata
Metadata
Assignees
Labels
Complexity: LargeFeature: Dockerready for dev leadIssues that tech leads or merge team members need to follow up onIssues that tech leads or merge team members need to follow up onrole: back end/devOpsTasks for back-end developersTasks for back-end developerssize: 2ptCan be done in 7-12 hoursCan be done in 7-12 hours
Type
Projects
Status
New Issue Approval