mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-07-09 03:04:54 -04:00
chore: auto-set-version-on-ci (#2188)
* setup __version__ on build * make build clickable link * fix else-if
This commit is contained in:
parent
ac0432d47a
commit
d3f893dec2
8
.github/workflows/partial-builder.yml
vendored
8
.github/workflows/partial-builder.yml
vendored
@ -71,6 +71,10 @@ jobs:
|
|||||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||||
|
|
||||||
|
- name: Override __init__.py
|
||||||
|
run: |
|
||||||
|
echo "__version__ = \"${{ inputs.tag }}\"" > ./mealie/__init__.py
|
||||||
|
|
||||||
- name: Build Backend Image
|
- name: Build Backend Image
|
||||||
run: |
|
run: |
|
||||||
docker build --push --no-cache \
|
docker build --push --no-cache \
|
||||||
@ -104,6 +108,10 @@ jobs:
|
|||||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||||
|
|
||||||
|
- name: Override __init__.py
|
||||||
|
run: |
|
||||||
|
echo "__version__ = \"${{ inputs.tag }}\"" > ./mealie/__init__.py
|
||||||
|
|
||||||
- name: Build Omni-Image
|
- name: Build Omni-Image
|
||||||
run: |
|
run: |
|
||||||
docker build --push --no-cache \
|
docker build --push --no-cache \
|
||||||
|
@ -151,6 +151,13 @@
|
|||||||
</a>
|
</a>
|
||||||
</v-list-item-subtitle>
|
</v-list-item-subtitle>
|
||||||
</template>
|
</template>
|
||||||
|
<template v-else-if="property.slot === 'build'">
|
||||||
|
<v-list-item-subtitle>
|
||||||
|
<a target="_blank" :href="`https://github.com/hay-kot/mealie/commit/${property.value}`">
|
||||||
|
{{ property.value }}
|
||||||
|
</a>
|
||||||
|
</v-list-item-subtitle>
|
||||||
|
</template>
|
||||||
<template v-else>
|
<template v-else>
|
||||||
<v-list-item-subtitle>
|
<v-list-item-subtitle>
|
||||||
{{ property.value }}
|
{{ property.value }}
|
||||||
@ -369,6 +376,7 @@ export default defineComponent({
|
|||||||
value: data.version,
|
value: data.version,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
slot: "build",
|
||||||
name: "Build",
|
name: "Build",
|
||||||
icon: $globals.icons.information,
|
icon: $globals.icons.information,
|
||||||
value: data.buildId,
|
value: data.buildId,
|
||||||
|
@ -1 +1 @@
|
|||||||
__version__ = "v1.0.0beta-5"
|
__version__ = "develop"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user