diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 561a102..91ea3df 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -2,9 +2,11 @@ version: 2 updates: - package-ecosystem: "docker" directory: "/" + target-branch: develop schedule: interval: "weekly" - package-ecosystem: "github-actions" directory: "/" + target-branch: develop schedule: interval: "monthly" diff --git a/.github/workflows/build.yml b/.github/workflows/ci.yml similarity index 62% rename from .github/workflows/build.yml rename to .github/workflows/ci.yml index 5d76d2f..f0b75da 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/ci.yml @@ -1,4 +1,4 @@ -name: Build Docker Image +name: Build & Release on: push: @@ -11,14 +11,15 @@ on: - "main" - "develop" -permissions: - contents: read - packages: write + jobs: build-image: name: Buld Docker Image runs-on: ubuntu-latest + permissions: + contents: read + packages: write steps: - name: Checkout @@ -60,3 +61,31 @@ jobs: push: true tags: ${{ steps.docker-meta.outputs.tags }} labels: ${{ steps.docker-meta.outputs.labels }} + create-release: + name: Release + runs-on: ubuntu-latest + if: startsWith(github.ref, 'refs/tags/') + permissions: + contents: write + needs: + - build-image + steps: + - + uses: actions/checkout@v4 + - + name: Get latest release info + id: query-release-info + uses: release-flow/keep-a-changelog-action@v3 + with: + command: query + version: ${{ github.ref_name }} + - + name: Display release info + run: | + echo "Version: ${{ steps.query-release-info.outputs.version }}" + echo "Date: ${{ steps.query-release-info.outputs.release-date }}" + echo "${{ steps.query-release-info.outputs.release-notes }}" + - + uses: ncipollo/release-action@v1 + with: + body: ${{ steps.query-release-info.outputs.release-notes }} diff --git a/CHANGELOG.md b/CHANGELOG.md index 178dec2..9b98fb6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,9 +5,20 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). -## [Unreleased] +## [0.4.0] - 2024-06-10 -- Alpine 3.20 +### Changed + +- Base image updated to Alpine 3.20 +- s6-overlay updated to v3.2.0.0 + +### Added + +- Github release with changelog for releases + +### Fixed + +- dependabot was target the wrong branch for updates ## [0.3.0] diff --git a/Dockerfile b/Dockerfile index dc1c6b6..b93f092 100644 --- a/Dockerfile +++ b/Dockerfile @@ -18,7 +18,7 @@ ENV \ ARG TARGETARCH ARG TARGETVARIANT # Lock this version -ARG S6_OVERLAY_VERSION=3.1.6.2 +ARG S6_OVERLAY_VERSION=3.2.0.0 RUN set -eux \ && echo "Installing build time packages" \