Skip to content

Commit

Permalink
Add CI workflow to check for upstream Alpine updated.
Browse files Browse the repository at this point in the history
  • Loading branch information
Syndesi committed Aug 24, 2023
1 parent e945cce commit e002d89
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/ISSUE_TEMPLATE_CHECK_UPSTREAM_DEPENDENCY_ALPINE.md
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.
31 changes: 31 additions & 0 deletions .github/workflows/ci-check-upstream-dependency-alpine.yml
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
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## Unreleased
### Added
- Add CI workflow to check for upstream Alpine updated.

## 0.0.24 - 2023-08-21
### Changed
Expand Down

0 comments on commit e002d89

Please sign in to comment.