From e6a89f4c1da2aad5c72757578d3732e9eae05238 Mon Sep 17 00:00:00 2001 From: Varakh Date: Sat, 9 Dec 2023 17:42:04 +0100 Subject: [PATCH] More generic way of publishing docker image with all proper semVer tags #noissue --- .forgejo/workflows/build.yaml | 7 ++++++- .forgejo/workflows/release.yaml | 11 +++++++++-- .forgejo/workflows/release_rebuild.yaml | 11 +++++++++-- README.md | 2 -- 4 files changed, 24 insertions(+), 7 deletions(-) diff --git a/.forgejo/workflows/build.yaml b/.forgejo/workflows/build.yaml index 038bdd1..5c9ac1b 100644 --- a/.forgejo/workflows/build.yaml +++ b/.forgejo/workflows/build.yaml @@ -2,6 +2,10 @@ on: [ push ] env: FB_VERSION: 4.0.0 REVISION: ${{ github.sha }} + IMAGE_TAG: varakh/filebin + VERSION_MAJOR: 4 + VERSION_MINOR: 0 + VERSION_PATCH: 0 jobs: build: runs-on: docker @@ -30,4 +34,5 @@ jobs: with: build-args: FB_VERSION=${{ env.FB_VERSION }} push: false - tags: varakh/ts3web:${{ github.sha }} + tags: | + ${{ env.IMAGE_TAG }}:${{ github.sha }} diff --git a/.forgejo/workflows/release.yaml b/.forgejo/workflows/release.yaml index 0bc5f58..c4654d5 100644 --- a/.forgejo/workflows/release.yaml +++ b/.forgejo/workflows/release.yaml @@ -5,6 +5,10 @@ on: env: FB_VERSION: 4.0.0 REVISION: ${{ github.sha }} + IMAGE_TAG: varakh/filebin + VERSION_MAJOR: 4 + VERSION_MINOR: 0 + VERSION_PATCH: 0 jobs: build: runs-on: docker @@ -33,5 +37,8 @@ jobs: with: build-args: FB_VERSION=${{ env.FB_VERSION }} push: true - tags: varakh/filebin:latest,varakh/filebin:${{ env.FB_VERSION }} - + tags: | + ${{ env.IMAGE_TAG }}:${{ env.VERSION_MAJOR }} + ${{ env.IMAGE_TAG }}:${{ env.VERSION_MAJOR }}.${{ env.VERSION_MINOR }} + ${{ env.IMAGE_TAG }}:${{ env.VERSION_MAJOR }}.${{ env.VERSION_MINOR }}.${{ env.VERSION_PATCH }} + ${{ env.IMAGE_TAG }}:latest diff --git a/.forgejo/workflows/release_rebuild.yaml b/.forgejo/workflows/release_rebuild.yaml index e062c0b..cf80e7a 100644 --- a/.forgejo/workflows/release_rebuild.yaml +++ b/.forgejo/workflows/release_rebuild.yaml @@ -4,6 +4,10 @@ on: env: FB_VERSION: 4.0.0 REVISION: ${{ github.sha }} + IMAGE_TAG: varakh/filebin + VERSION_MAJOR: 4 + VERSION_MINOR: 0 + VERSION_PATCH: 0 jobs: build: runs-on: docker @@ -32,5 +36,8 @@ jobs: with: build-args: FB_VERSION=${{ env.FB_VERSION }} push: true - tags: varakh/filebin:latest,varakh/filebin:${{ env.FB_VERSION }} - + tags: | + ${{ env.IMAGE_TAG }}:${{ env.VERSION_MAJOR }} + ${{ env.IMAGE_TAG }}:${{ env.VERSION_MAJOR }}.${{ env.VERSION_MINOR }} + ${{ env.IMAGE_TAG }}:${{ env.VERSION_MAJOR }}.${{ env.VERSION_MINOR }}.${{ env.VERSION_PATCH }} + ${{ env.IMAGE_TAG }}:latest diff --git a/README.md b/README.md index 000267d..4550902 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,5 @@ # FileBin 🐋 -[![Build Status](https://drone.myservermanager.com/api/badges/varakh/docker-filebin/status.svg)](https://drone.myservermanager.com/varakh/docker-filebin) - A docker image for [FileBin](https://git.server-speed.net/users/flo/filebin/) to have it up and running in seconds. Visit project on [https://git.myservermanager.com/varakh/docker-filebin](https://git.myservermanager.com/varakh/docker-filebin)