-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #39 from ember-nexus/feature/improve-ci
Add CI workflow to check for upstream Alpine updated.
- Loading branch information
Showing
3 changed files
with
46 additions
and
0 deletions.
There are no files selected for viewing
13 changes: 13 additions & 0 deletions
13
.github/ISSUE_TEMPLATE_CHECK_UPSTREAM_DEPENDENCY_ALPINE.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
--- | ||
title: Upstream dependency got updated - Alpine with tag {{ env.TAG }} | ||
assignees: Syndesi | ||
labels: update dependency | ||
--- | ||
|
||
Open tasks: | ||
|
||
- [ ] Check if Dockerfile compiles with the newest Alpine version. | ||
- If there are updates: | ||
- [ ] Update local Dockerfile. | ||
- [ ] Add changelog entry. | ||
- [ ] Release new patch release. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: "Check upstream dependency - Alpine" | ||
on: | ||
schedule: | ||
- cron: "10 2 * * *" | ||
permissions: | ||
contents: write | ||
jobs: | ||
check-upstream-dependency-alpine: | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
||
- name: Checkout repo | ||
uses: actions/checkout@v3 | ||
|
||
- name: Load latest Docker Hub tags for Alpine | ||
run: | | ||
url="https://hub.docker.com/v2/namespaces/library/repositories/alpine/tags?page_size=25" | ||
latestTags=$(wget -O - -o /dev/null $url) | ||
latestTag=$(echo $latestTags | jq -r '.results[] | .name' | sed -E -n '/^[0-9]+\.[0-9]+\.[0-9]+/ s/^([0-9]+\.[0-9]+)\..*$/\1/p' | sort -V | uniq | tail -n 1) | ||
echo "Latest tag: $latestTag" | ||
echo "TAG=$latestTag" >> $GITHUB_ENV | ||
- name: Create new GitHub issue | ||
uses: JasonEtco/create-an-issue@v2 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }} | ||
TAG: ${{ env.TAG }} | ||
with: | ||
filename: .github/ISSUE_TEMPLATE_CHECK_UPSTREAM_DEPENDENCY_ALPINE.md | ||
update_existing: false | ||
search_existing: all |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters