Skip to content

Commit

Permalink
Move the JS_FOLDER var to the top (#1032)
Browse files Browse the repository at this point in the history
  • Loading branch information
forgetso authored Feb 8, 2024
1 parent f304f0d commit dce0375
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -361,6 +361,10 @@ jobs:
- name: Build docker js_server
if: steps.check_version_any.outputs.bump == 'true'
run: |
# Set the JS location in the container
JS_FOLDER="/usr/share/nginx/html/js"
# Get the most recent version of the js_server image
docker pull prosopo/js_server:${{ steps.check_version_docker_js_server.outputs.version }}
# Create a temporary container from the latest image
Expand All @@ -379,9 +383,6 @@ jobs:
# Run the new image
NEW_CONTAINER_ID=$(docker create prosopo/js_server:${{ steps.next_version.outputs.version }})
# Set the JS location in the container
JS_FOLDER="/usr/share/nginx/html/js"
# Copy the legacy files across
docker cp ./js_bundles_host_temp/ $NEW_CONTAINER_ID:$JS_FOLDER/
Expand Down

0 comments on commit dce0375

Please sign in to comment.