Skip to content

Commit

Permalink
removing custom action - doing everything for it in container
Browse files Browse the repository at this point in the history
  • Loading branch information
Ereiarrus committed Jan 31, 2024
1 parent 8052038 commit f9f56ea
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 36 deletions.
25 changes: 0 additions & 25 deletions .github/actions/python-init/action.yml

This file was deleted.

6 changes: 3 additions & 3 deletions .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/python-init
- uses: oNaiPs/secrets-to-env-action@v1
with:
secrets: ${{ toJSON(secrets) }}

Expand Down Expand Up @@ -42,7 +42,7 @@ jobs:
needs: [build]
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/python-init
- uses: oNaiPs/secrets-to-env-action@v1
with:
secrets: ${{ toJSON(secrets) }}

Expand Down Expand Up @@ -71,7 +71,7 @@ jobs:
if: github.ref == 'refs/heads/main' # Only deploy if this was a push to main
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/python-init
- uses: oNaiPs/secrets-to-env-action@v1
with:
secrets: ${{ toJSON(secrets) }}

Expand Down
8 changes: 0 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,6 @@ RUN apk add build-base
RUN cd ./src; pipenv install --system --deploy; cd ..
RUN rm -rf /var/cache/apk/*
RUN pip install cython

RUN find /usr -name Python.h

RUN python3-config --includes
RUN python3-config --includes | grep python3.12

RUN python -m cython -3 --embed -o main.c main.py
RUN gcc -Os -I $(python3-config --includes | grep python3.12) -o main main.c -lpython3.12 -lpthread -lutil $(python3-config --libs)
# EXPOSE 50994/tcp
# EXPOSE 50995/tcp
CMD ["./main"]

0 comments on commit f9f56ea

Please sign in to comment.