Skip to content

Commit

Permalink
Fix deploy (#375)
Browse files Browse the repository at this point in the history
  • Loading branch information
sneridagh authored Mar 25, 2024
1 parent b95d045 commit 48b3d24
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ jobs:
ENVIRONMENT=${{ env.ENVIRONMENT }}
echo "ENVIRONMENT=${ENVIRONMENT}" >> $GITHUB_OUTPUT
echo "STACK_NAME=${ENVIRONMENT//./-}" >> $GITHUB_OUTPUT
python3 -c 'import json; data = json.load(open("mrs-developer.json")); print("VOLTO_VERSION=" + data["core"]["tag"] or 'latest')' >> $GITHUB_OUTPUT
python3 -c 'import json; data = json.load(open("mrs.developer.json")); print("VOLTO_VERSION=" + data["core"]["tag"] or 'latest')' >> $GITHUB_OUTPUT
- run: echo "${{ steps.vars.outputs.VOLTO_VERSION }}"

release:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -74,7 +76,7 @@ jobs:
build-args: |
ADDON_NAME=@kitconcept/volto-light-theme
ADDON_PATH=volto-light-theme
VOLTO_VERSION=${{ env.VOLTO_VERSION }}
VOLTO_VERSION=${{ needs.meta.outputs.VOLTO_VERSION }}
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: $${{ steps.meta.outputs.labels }}
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile → dockerfiles/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ ARG ADDON_PATH
ENV THEME='@kitconcept/volto-light-theme'

# Copy helper.py as /setupAddon
COPY helper.py /setupAddon
COPY dockerfiles/helper.py /setupAddon

# Copy addon code
COPY --chown=node:node ./packages/${ADDON_PATH} /app/src/addons/${ADDON_PATH}/
Expand Down
6 changes: 4 additions & 2 deletions helper.py → dockerfiles/helper.py
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
#!/usr/bin/python3
"""Addon support for Volto."""
from pathlib import Path
from typing import Tuple

import json
import logging
import os
from pathlib import Path
from typing import Tuple


logger = logging.getLogger("Volto Helper")

Expand Down

0 comments on commit 48b3d24

Please sign in to comment.