Skip to content

Commit 27869df

Browse files
authored
Create Dockerfile dependencies issue every 6 month (#59)
We have to update the Dockerfile dependencies manually at the moment, so we now have an issue automatically created every 6 months to prompt us to do so.
1 parent 8f5b667 commit 27869df

File tree

3 files changed

+47
-1
lines changed

3 files changed

+47
-1
lines changed

.github/DEPENDENCIES.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ For major version updates, we should test that the remote container works succes
4747

4848
## Dockerfile dependencies
4949

50-
We have [pinned the linux dependencies in the devcontainer Dockerfile](https://github.com/agilepathway/hoverfly-github-action/pull/46/files), but there is no mechanism to automatically update them, currently. It looks like [it's on Dependabot's roadmap](https://github.com/dependabot/dependabot-core/issues/2129#issuecomment-511552345), so we have reminders every 6 months to
50+
We have [pinned the linux dependencies in the devcontainer Dockerfile](https://github.com/agilepathway/hoverfly-github-action/pull/46/files), but there is no mechanism to automatically update them, currently. It looks like [it's on Dependabot's roadmap](https://github.com/dependabot/dependabot-core/issues/2129#issuecomment-511552345), so we have [an issue automatically created every 6 months](https://github.com/agilepathway/hoverfly-github-action/pull/59) to
5151
1. update the dependencies manually
5252
2. see if Dependabot now offer this functionality
5353

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
name: Update dependencies in devcontainer Dockerfile
3+
about: Stay up to date with Dockerfile dependencies
4+
title: Update dependencies in devcontainer Dockerfile
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
11+
We have [pinned the linux dependencies in the devcontainer Dockerfile](https://github.com/agilepathway/hoverfly-github-action/pull/46/files), but there is no mechanism to automatically update them, currently. It looks like [it's on Dependabot's roadmap](https://github.com/dependabot/dependabot-core/issues/2129#issuecomment-511552345), so this GitHub Issue gets automatically created every 6 months to:
12+
13+
- [ ] update the dependencies manually:
14+
1. Temporarily unpin the versions (i.e. remove `=<version>` from each package in the Dockerfile)
15+
2. Execute the Dockerfile (e.g. if it's a remote container Dockerfile build the remote container)
16+
3. Run `apt-cache policy <package>` for each package, to see the version installed
17+
4. Pin all the versions, replacing any old versions with new ones
18+
- [ ] see if Dependabot now offer this functionality (in which case we can do it automatically, from then on)
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
---
2+
name: Create issue every 6 months to update Dockerfile dependencies
3+
on: # yamllint disable-line rule:truthy
4+
# Scheduled for 4am on 10th March and 10th Sept every year
5+
schedule:
6+
- cron: '0 4 10 3,9 *' # * is a special character in YAML so we have to quote this string
7+
8+
jobs:
9+
create_issue:
10+
name: Create issue to update Dockerfile dependencies
11+
runs-on: ubuntu-20.04
12+
steps:
13+
14+
# Repo code checkout required if `template` is used
15+
- name: Checkout
16+
uses: actions/checkout@v2
17+
18+
- name: issue-bot
19+
uses: imjohnbo/issue-bot@v2
20+
with:
21+
assignees: "johnboyes"
22+
labels: "dependencies"
23+
pinned: false
24+
close-previous: false
25+
# assignees & labels in the template are overridden by the values specified in this action
26+
template: ".github/ISSUE_TEMPLATE/scheduled/update-dockerfile-dependencies.md"
27+
env:
28+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)