From 6146249a67d7fe5f7a04697e0243377d985e28f5 Mon Sep 17 00:00:00 2001 From: bjarneo Date: Tue, 29 Oct 2024 18:27:26 +0100 Subject: [PATCH] chore: add minor docker image --- .github/workflows/publish_docker_image.yaml | 18 +++++++++++++++--- README.md | 1 + 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/.github/workflows/publish_docker_image.yaml b/.github/workflows/publish_docker_image.yaml index 502c330..aa10123 100644 --- a/.github/workflows/publish_docker_image.yaml +++ b/.github/workflows/publish_docker_image.yaml @@ -31,21 +31,33 @@ jobs: run: | echo "version=$(echo ${{ steps.latest_tag.outputs.tag }} | cut -d'.' -f1)" >> $GITHUB_OUTPUT - - name: Push to Docker Hub + - name: Get minor version + id: minor_version + run: | + echo "version=$(echo ${{ steps.latest_tag.outputs.tag }} | cut -d'.' -f1,2)" >> $GITHUB_OUTPUT + + - name: Push to Docker Hub (latest) uses: docker/build-push-action@v4 with: platforms: linux/amd64, linux/arm64 push: true tags: hemmeligapp/hemmelig:latest - - name: Push to Docker Hub + - name: Push to Docker Hub (full version) uses: docker/build-push-action@v4 with: platforms: linux/amd64, linux/arm64 push: true tags: hemmeligapp/hemmelig:${{ steps.latest_tag.outputs.tag }} - - name: Push to Docker Hub + - name: Push to Docker Hub (minor version) + uses: docker/build-push-action@v4 + with: + platforms: linux/amd64, linux/arm64 + push: true + tags: hemmeligapp/hemmelig:${{ steps.minor_version.outputs.version }} + + - name: Push to Docker Hub (major version) uses: docker/build-push-action@v4 with: platforms: linux/amd64, linux/arm64 diff --git a/README.md b/README.md index 36e417c..d063eeb 100644 --- a/README.md +++ b/README.md @@ -66,6 +66,7 @@ Supported docker platforms: `amd/64`, `arm/64`. - hemmeligapp/hemmelig:latest (Is created on each version release) - hemmeligapp/hemmelig:v5 (Is created on each version release for the major version) +- hemmeligapp/hemmelig:v5.19 (Is created on each version release for the major and minor version) - hemmeligapp/hemmelig:v5.19.28 see [tags](https://github.com/HemmeligOrg/Hemmelig.app/tags) for all version - hemmeligapp/hemmelig:weekly (pushed every week on Friday) - hemmeligapp/hemmelig:daily