Skip to content

Commit

Permalink
conditionally download windows version
Browse files Browse the repository at this point in the history
  • Loading branch information
t0mdavid-m committed Sep 26, 2024
1 parent faa3d9e commit 09d9b30
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,12 @@ RUN echo "mamba run --no-capture-output -n streamlit-env streamlit run app.py" >
RUN chmod +x /app/entrypoint.sh

# Download latest OpenMS App executable for Windows from Github actions workflow.
RUN gh release download --repo ${GITHUB_USER}/${GITHUB_REPO} --pattern "${ASSET_NAME}" --dir /app
RUN if [ -n "$GH_TOKEN" ]; then \
echo "GH_TOKEN is set, proceeding to download the release asset..."; \
gh release download --repo ${GITHUB_USER}/${GITHUB_REPO} --pattern "${ASSET_NAME}" --dir /app; \
else \
echo "GH_TOKEN is not set, skipping the release asset download."; \
fi

# Run app as container entrypoint.
EXPOSE $PORT
Expand Down

0 comments on commit 09d9b30

Please sign in to comment.