.gitea/workflows/deployProduction.yml aktualisiert #60
@@ -12,6 +12,11 @@ on:
|
||||
description: "Pocketapp version"
|
||||
required: false
|
||||
type: string
|
||||
|
||||
mealplannerapi_version:
|
||||
description: "Mealplanner API version"
|
||||
required: false
|
||||
type: string
|
||||
|
||||
jobs:
|
||||
update:
|
||||
@@ -48,11 +53,13 @@ jobs:
|
||||
env:
|
||||
PSITRAIL_VERSION: ${{ inputs.psitrail_version }}
|
||||
POCKETAPP_VERSION: ${{ inputs.pocketapp_version }}
|
||||
MEALPLANNERAPI_VERSION: ${{ inputs.mealplannerapi_version }}
|
||||
run: |
|
||||
cd WebHosting_DMZ
|
||||
|
||||
echo "Psitrail version: '${PSITRAIL_VERSION}'"
|
||||
echo "Pocketapp version: '${POCKETAPP_VERSION}'"
|
||||
echo "Mealplanner API version: '${MEALPLANNERAPI_VERSION}'"
|
||||
|
||||
if [ -n "$PSITRAIL_VERSION" ]; then
|
||||
sed -i -E \
|
||||
@@ -66,6 +73,13 @@ jobs:
|
||||
"s|(image: gitea\.psi\.ch/bb_if_produktiv/pocketapp:)[^[:space:]]*|\1${POCKETAPP_VERSION}|" \
|
||||
stacks/pocketapp/compose.yaml
|
||||
fi
|
||||
|
||||
if [ -n "$MEALPLANNERAPI_VERSION" ]; then
|
||||
# Replace this with the actual mealplanner api image name
|
||||
sed -i -E \
|
||||
"s|(image: gitea\.psi\.ch/bb_if_produktiv/mealplanner-api-original:)[^[:space:]]*|\1${MEALPLANNERAPI_VERSION}|" \
|
||||
stacks/mealplanner/compose.yaml
|
||||
fi
|
||||
|
||||
echo "After modification:"
|
||||
cat docker-compose.yaml
|
||||
@@ -99,6 +113,7 @@ jobs:
|
||||
GIT_TOKEN: ${{ secrets.GIT_TOKEN }}
|
||||
PSITRAIL_VERSION: ${{ inputs.psitrail_version }}
|
||||
POCKETAPP_VERSION: ${{ inputs.pocketapp_version }}
|
||||
MEALPLANNERAPI_VERSION: ${{ inputs.mealplannerapi_version }}
|
||||
run: |
|
||||
DESCRIPTION="Automated version update."
|
||||
|
||||
@@ -109,6 +124,10 @@ jobs:
|
||||
if [ -n "$PSITRAIL_VERSION" ]; then
|
||||
DESCRIPTION+=" PsiTrail: $PSITRAIL_VERSION"
|
||||
fi
|
||||
|
||||
if [ -n "$MEALPLANNERAPI_VERSION" ]; then
|
||||
DESCRIPTION+=" Mealplanner API: $MEALPLANNERAPI_VERSION"
|
||||
fi
|
||||
|
||||
# Add new versions here:
|
||||
# if [ -n "$MYAPP_VERSION" ]; then
|
||||
|
||||
Reference in new issue
Block a user