Compare commits
3 Commits
2a1b43a6fa
...
8135029174
| Author | SHA1 | Date | |
|---|---|---|---|
| 8135029174 | |||
| b265930e6f | |||
| 41738b60ef |
@@ -0,0 +1,51 @@
|
||||
name: Déploiement
|
||||
on:
|
||||
workflow_dispatch:
|
||||
pull_request:
|
||||
types:
|
||||
- closed
|
||||
push:
|
||||
branches:
|
||||
- dev
|
||||
jobs:
|
||||
deploy:
|
||||
# Trigger deploy workflow if
|
||||
# ...I clicked on "Run workflow" in Github actions, thus deploy main to production env (main)
|
||||
# or
|
||||
# ...I merged a PR or pushed on the dev branch, thus deploy to the test env (dev)
|
||||
if: |
|
||||
(github.event_name == 'workflow_dispatch' && github.ref_name == 'main') ||
|
||||
((github.event_name == 'pull_request' || github.event_name == 'push') && github.ref_name == 'dev')
|
||||
runs-on: ubuntu-latest
|
||||
environment: ${{ github.ref_name }}
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v5
|
||||
|
||||
- name: Set up SSH key
|
||||
run: |
|
||||
env
|
||||
mkdir -p ~/.ssh
|
||||
echo "${{ secrets.ARTIFACT_SSH_KEY }}" > /home/runner/.ssh/id_rsa
|
||||
chmod 600 ~/.ssh/id_rsa
|
||||
ssh-keyscan -p ${{ secrets.ARTIFACT_PORT }} ${{ secrets.ARTIFACT_HOST }} >> ~/.ssh/known_hosts
|
||||
sudo apt-get install sshpass python3 python3-pip
|
||||
|
||||
- name: Deploy to server
|
||||
uses: appleboy/ssh-action@master
|
||||
with:
|
||||
host: ${{ secrets.ARTIFACT_HOST }}
|
||||
username: ${{ secrets.USER }}
|
||||
port: ${{ secrets.ARTIFACT_PORT }}
|
||||
key: ${{ secrets.ARTIFACT_SSH_KEY }}
|
||||
passphrase: ${{ secrets.SSH_PSWD }}
|
||||
command_timeout: 5m
|
||||
script: |
|
||||
systemctl stop ${{ vars.APP_NAME }}
|
||||
cd /var/www/${{ vars.APP_NAME }}
|
||||
git pull
|
||||
source .venv/bin/activate
|
||||
pip install .
|
||||
deactivate
|
||||
chown -R ${{ vars.APP_NAME }}:www-data *
|
||||
systemctl start ${{ vars.APP_NAME }}
|
||||
+25
-7
@@ -56,15 +56,23 @@ home_intro = html.Div(
|
||||
style={"maxWidth": "900px", "marginTop": "1rem"},
|
||||
children=[
|
||||
html.P(
|
||||
"colibre ouvre les données des marchés publics français à toutes et "
|
||||
"tous : recherchez, filtrez, cartographiez, exportez. Gratuitement "
|
||||
"et sans compte.",
|
||||
[
|
||||
html.Span(
|
||||
"colibre",
|
||||
style={
|
||||
"fontWeight": 600,
|
||||
"fontSize": "1.5rem",
|
||||
"color": "var(--primary-color-text)",
|
||||
},
|
||||
),
|
||||
" ouvre les données des marchés publics français à toutes et "
|
||||
"tous : recherchez, filtrez, cartographiez, téléchargez.",
|
||||
],
|
||||
className="text-center",
|
||||
style={
|
||||
"fontWeight": 600,
|
||||
"maxWidth": "700px",
|
||||
"margin": "4rem auto 1.5rem",
|
||||
"color": "var(--primary-color-text)",
|
||||
"maxWidth": "750px",
|
||||
"fontSize": "1.5rem",
|
||||
"margin": "6rem auto 1.5rem",
|
||||
},
|
||||
),
|
||||
dbc.Row(
|
||||
@@ -148,6 +156,16 @@ def layout(**_):
|
||||
"borderRadius": "0 3px 3px 0",
|
||||
"marginLeft": "0",
|
||||
"height": "34px",
|
||||
# Le padding vertical (.375rem) et le line-height
|
||||
# (1.5) de .btn dépassent la hauteur fixe de 34px :
|
||||
# le glyphe débordait vers le bas. On centre en flex
|
||||
# et on neutralise le padding vertical.
|
||||
"display": "flex",
|
||||
"alignItems": "center",
|
||||
"justifyContent": "center",
|
||||
"paddingTop": "0",
|
||||
"paddingBottom": "0",
|
||||
"lineHeight": "1",
|
||||
},
|
||||
),
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user