diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index e819552383..03db9186b9 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -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 @@ -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/