diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 7ccae380..9afe6ac5 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -6,6 +6,9 @@ on: tags: - "v*" +# This workflow does not support fixing old versions +# as this will break the latest and major tags + jobs: docker: name: Build & Deploy Docker @@ -31,6 +34,8 @@ jobs: with: images: | ghcr.io/wg-easy/wg-easy + flavor: | + latest=false tags: | type=semver,pattern={{version}} type=semver,pattern={{major}} @@ -87,8 +92,6 @@ jobs: cd docs git fetch origin gh-pages --depth=1 || true - # latest will point to old docs if old tag is pushed - # Extract version numbers DOCS_VERSION=${GITHUB_REF#refs/tags/} # e.g. v1.2.3 or v1.2.3-beta MINOR_VERSION=$(echo $DOCS_VERSION | cut -d. -f1,2) # e.g. v1.2