Closed Poitrin closed 1 year ago
Due to additional issues (regarding api_request
method in entrypoint.sh
using custom app token) appearing during development, it has been decided to pause work on this issue and create a design document to decide how to proceed (see Theme Dev Tools Drive folder → Early technical explorations)
There are still 2 open IT Helpdesk tickets to…
Depending on these tickets' outcomes, I might add changes to the branch, but PR is closed.
WHY are these changes introduced?
Fixes #51:
WHAT is this pull request doing?
If token for Theme Access app is set, uses CLI 3.x to push theme. Else, continues to use CLI 2.x with custom app token to push theme.
How to test your changes?
cd
into repo dir that containsDockerfile
INPUT_ACCESS_TOKEN
INPUT_SHOPIFY_CLI_THEME_TOKEN
podman build --tag lighthouse .
(ordocker …
if you prefer)podman run --name lighthouse --rm -i -t \ --mount "type=bind,source=$(pwd)/entrypoint.sh,target=/entrypoint.sh" \ --mount "type=bind,source=$(pwd)/draft,target=/draft" \ -e "INPUT_STORE=$INPUT_STORE" \ -e "INPUT_THEME_ROOT=./draft" \ -e "INPUT_PASSWORD=$INPUT_PASSWORD" \ -e "INPUT_ACCESS_TOKEN=$INPUT_ACCESS_TOKEN" \ -e "INPUT_SHOPIFY_CLI_THEME_TOKEN=$INPUT_SHOPIFY_CLI_THEME_TOKEN" \ lighthouse