forked from badtuxx/giropops-senhas
-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Remove unused mdBook workflow and Alpine Linux packages
- Loading branch information
nataliagranato
committed
Aug 26, 2024
1 parent
f9cd08d
commit a607a72
Showing
3 changed files
with
40 additions
and
60 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
package: | ||
name: senhas-staging | ||
version: 1.0.0 | ||
description: Um gerador de senhas. | ||
copyright: | ||
- license: Apache-2.0 | ||
paths: | ||
- "*" | ||
dependencies: | ||
runtime: | ||
- python3 | ||
|
||
environment: | ||
contents: | ||
repositories: | ||
- https://dl-cdn.alpinelinux.org/alpine/edge/main | ||
- https://dl-cdn.alpinelinux.org/alpine/edge/community | ||
packages: | ||
- alpine-baselayout-data | ||
- ca-certificates-bundle | ||
- busybox | ||
- gcc | ||
- musl-dev | ||
- python3 | ||
- python3-dev | ||
- py3-pip | ||
- py3-virtualenv | ||
|
||
pipeline: | ||
- name: Build Python application | ||
runs: | | ||
WEBAPPDIR="${{targets.destdir}}/usr/share/webapps/app" | ||
mkdir -p "${WEBAPPDIR}" | ||
echo "#!/usr/share/webapps/app/venv/bin/python3" > "${WEBAPPDIR}/app" | ||
cat app.py >> "${WEBAPPDIR}/app" | ||
chmod +x "${WEBAPPDIR}/app" | ||
cp -r templates "${WEBAPPDIR}" | ||
cp -r static "${WEBAPPDIR}" | ||
virtualenv "${WEBAPPDIR}/venv" | ||
sh -c "source '${WEBAPPDIR}/venv/bin/activate' && pip install -r requirements.txt" |
Binary file not shown.