Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Try Rules Engine on TestPyPi (was: Actionstest) #146

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions .github/workflows/test-rules-engine.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,3 +70,26 @@ jobs:
- name: Build wheel
run: |
make build
- name: store wheel
uses: actions/upload-artifact@v4
with:
name: python-package-distributions
path: ${{ env.working-directory }}/dist/
publish-to-test:
name: Publish to testpypi
needs:
- build
runs-on: ubuntu-latest
permissions:
id-token: write

steps:
- name: Download dist
uses: actions/download-artifact@v4
with:
name: python-package-distributions
path: dist/
- name: publish to testpypi
uses: pypa/gh-action-pypi-publish@release/v1
with:
repository-url: https://test.pypi.org/legacy/
6 changes: 5 additions & 1 deletion heat-stack/other/.dockerignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
# This file is moved to the root directory before building the image

/node_modules
**/node_modules
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, good trick for monorepos.

**/.github*
**/.vscode
*.log
.DS_Store
.env
/.cache
/public/build
/build
**/Dockerfile
**/.dockerignore
10 changes: 10 additions & 0 deletions heat-stack/other/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,15 @@ ENV NODE_ENV production
# Install openssl for Prisma
RUN apt-get update && apt-get install -y fuse3 openssl sqlite3 ca-certificates

FROM base AS rules-eng

SHELL ["/bin/bash","-c"]

RUN apt install -y python3 python3-venv && \
python3 -m venv .venv && \
source .venv/bin/activate && \
pip download --no-deps -d .venv/tmp -i https://test.pypi.org/simple/ rules-engine

# Install all node_modules, including dev dependencies
FROM base as deps

Expand Down Expand Up @@ -64,6 +73,7 @@ COPY --from=build /myapp/node_modules/.prisma /myapp/node_modules/.prisma
COPY --from=build /myapp/server-build /myapp/server-build
COPY --from=build /myapp/build /myapp/build
COPY --from=build /myapp/public /myapp/public
COPY --from=rules-eng /.venv/tmp/ /myapp/public/pyodide-env/
COPY --from=build /myapp/package.json /myapp/package.json
COPY --from=build /myapp/prisma /myapp/prisma
COPY --from=build /myapp/app/components/ui/icons /myapp/app/components/ui/icons
Expand Down
Loading
Loading