diff --git a/.github/workflows/docker-image-push.yml b/.github/workflows/docker-image-push.yml index 03462b2..0358ac3 100644 --- a/.github/workflows/docker-image-push.yml +++ b/.github/workflows/docker-image-push.yml @@ -1,6 +1,8 @@ name: Build and push multi-arch Docker image on: + schedule: + - cron: '0 9 * * FRI' release: types: [published] @@ -16,6 +18,15 @@ jobs: steps: - name: Checkout uses: actions/checkout@v1 + with: + fetch-depth: 0 + + - name: Checkout release to build + run: | + if [[ $GITHUB_EVENT_NAME == schedule ]]; then + # Use the latest stable version + git checkout "$(git tag -l | grep -E "^[0-9]*\.[0-9]*\.[0-9]*$" | tail -n 1)" + fi - name: Docker login env: diff --git a/CHANGELOG.md b/CHANGELOG.md index 2859261..41f9cfd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,8 @@ # Changelog +## Unreleased +- Rebuild latest stable release images on a weekly basis. + ## 4.3.0 (2021-11-23) - Bump [`thelounge`][1] to [`4.3.0`](https://github.com/thelounge/thelounge/releases/tag/v4.3.0). - Upgrade Node.js base images from 12 to LTS.