mirror of
https://github.com/Novaloop-AG/healthchat-web.git
synced 2026-10-31 08:15:07 +00:00
ci: publish :latest instead of :stable for stable tags
This commit is contained in:
@@ -62,7 +62,17 @@ jobs:
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
echo "version=$VERSION" >> "$GITHUB_OUTPUT"
|
echo "version=$VERSION" >> "$GITHUB_OUTPUT"
|
||||||
echo "Resolved version: $VERSION"
|
# `:latest` is what the ansible inventory deploys from, so only a clean
|
||||||
|
# X.Y.Z tag push may move it — never an -rc/-hotfix/-dryrun tag, and never
|
||||||
|
# a manual re-run. Otherwise a release candidate or a pipeline test would
|
||||||
|
# become production on the next deploy of any kind.
|
||||||
|
if [[ "$VERSION" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ && "$GITHUB_EVENT_NAME" == "push" ]]; then
|
||||||
|
IS_STABLE=true
|
||||||
|
else
|
||||||
|
IS_STABLE=false
|
||||||
|
fi
|
||||||
|
echo "is_stable=$IS_STABLE" >> "$GITHUB_OUTPUT"
|
||||||
|
echo "Resolved version: $VERSION (moves :latest: $IS_STABLE)"
|
||||||
|
|
||||||
- name: Resolve workspace ref
|
- name: Resolve workspace ref
|
||||||
id: workspace
|
id: workspace
|
||||||
@@ -157,7 +167,7 @@ jobs:
|
|||||||
images: ${{ env.DOCKER_REGISTRY }}/${{ env.DOCKER_IMAGE }}
|
images: ${{ env.DOCKER_REGISTRY }}/${{ env.DOCKER_IMAGE }}
|
||||||
tags: |
|
tags: |
|
||||||
type=raw,value=${{ steps.version.outputs.version }}
|
type=raw,value=${{ steps.version.outputs.version }}
|
||||||
type=raw,value=stable
|
type=raw,value=latest,enable=${{ steps.version.outputs.is_stable == 'true' }}
|
||||||
type=raw,value=${{ github.sha }}
|
type=raw,value=${{ github.sha }}
|
||||||
|
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
|
|||||||
Reference in New Issue
Block a user