mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2025-07-24 12:44:47 +02:00
fix: update-check.sh
should query GH Releases (#3666)
* fix: Source `VERSION` from image ENV Now CI builds triggered from tagged releases will always have the correct version. No need for manually updating a separate file. * fix: Query latest GH release tag Compare to the remote GH release tag published, rather than contents of a `VERSION` file. `VERSION` file remains in source for now as prior releases still rely on it for an update notification. * chore: Switch from `yq` to `jaq` - Can more easily express a string subslice. - Lighter weight: 9.3M vs 1.7M. - Drawback, no YAML input/output support. If `yq` is preferred, the `v` prefix could be removed via BASH easily enough. * chore: Add entry to `CHANGELOG.md` * ci: `VERSION` has no relevance to `:edge` * docs: Update build guide + simplify `make build` --------- Co-authored-by: Georg Lauterbach <44545919+georglauterbach@users.noreply.github.com>
This commit is contained in:
parent
a11951e398
commit
19e96b5131
9 changed files with 35 additions and 28 deletions
1
.github/workflows/default_on_push.yml
vendored
1
.github/workflows/default_on_push.yml
vendored
|
@ -11,7 +11,6 @@ on:
|
|||
- .gitmodules
|
||||
- Dockerfile
|
||||
- setup.sh
|
||||
- VERSION # also update :edge when a release happens
|
||||
tags:
|
||||
- '*.*.*'
|
||||
|
||||
|
|
7
.github/workflows/generic_publish.yml
vendored
7
.github/workflows/generic_publish.yml
vendored
|
@ -66,18 +66,13 @@ jobs:
|
|||
username: ${{ github.actor }}
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: 'Acquire the image version'
|
||||
id: get-version
|
||||
shell: bash
|
||||
run: echo "version=$(<VERSION)" >>"${GITHUB_OUTPUT}"
|
||||
|
||||
- name: 'Build and publish images'
|
||||
uses: docker/build-push-action@v5.1.0
|
||||
with:
|
||||
context: .
|
||||
build-args: |
|
||||
DMS_RELEASE=${{ github.ref_type == 'tag' && github.ref_name || 'edge' }}
|
||||
VCS_REVISION=${{ github.sha }}
|
||||
VCS_VERSION=${{ steps.get-version.outputs.version }}
|
||||
platforms: linux/amd64,linux/arm64
|
||||
push: true
|
||||
tags: ${{ steps.prep.outputs.tags }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue