Bye bye closed source blob.
This commit is contained in:
parent
58bc529a43
commit
ef38c95a90
|
@ -1,24 +0,0 @@
|
|||
---
|
||||
|
||||
name: Publish
|
||||
|
||||
on: [push]
|
||||
|
||||
jobs:
|
||||
publish:
|
||||
name: ${{ matrix.directory }}
|
||||
strategy:
|
||||
matrix:
|
||||
directory:
|
||||
- python-initiation
|
||||
- python-avancé
|
||||
- drf-initiation
|
||||
- django-initiation
|
||||
- python-perfs
|
||||
- git-initiation
|
||||
secrets:
|
||||
deploy_key: ${{ secrets.deploy_key }}
|
||||
known_hosts: ${{ secrets.known_hosts }}
|
||||
uses: JulienPalard/formations/.github/workflows/deploy.yml@main
|
||||
with:
|
||||
directory: ${{ matrix.directory }}
|
|
@ -1,42 +0,0 @@
|
|||
---
|
||||
|
||||
on:
|
||||
workflow_call:
|
||||
inputs:
|
||||
directory:
|
||||
required: true
|
||||
type: string
|
||||
secrets:
|
||||
deploy_key:
|
||||
required: true
|
||||
known_hosts:
|
||||
required: true
|
||||
jobs:
|
||||
publish:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: '3.10'
|
||||
cache: pip
|
||||
- run: sudo apt-get install -y cutycapt
|
||||
- run: python3 -m pip install -r requirements.txt
|
||||
- run: make -C ${{ inputs.directory }} test
|
||||
- name: Publish
|
||||
env:
|
||||
deploy_key: ${{secrets.deploy_key}}
|
||||
known_hosts: ${{secrets.known_hosts}}
|
||||
QT_QPA_PLATFORM: offscreen
|
||||
run: |
|
||||
mkdir -p ${HOME}/.ssh
|
||||
printf "%s\n" "$known_hosts" > ${HOME}/.ssh/known_hosts
|
||||
printf "%s\n" "$deploy_key" > ${HOME}/.ssh/id_ed25519
|
||||
chmod 600 ${HOME}/.ssh/id_ed25519
|
||||
eval $(ssh-agent)
|
||||
ssh-add
|
||||
rm ${HOME}/.ssh/id_ed25519
|
||||
export deploy_key=""
|
||||
export PATH="$HOME/.local/bin/:$PATH"
|
||||
cd ${{ inputs.directory }}
|
||||
make rsync
|
Loading…
Reference in New Issue