From ef38c95a9014cddbc555a1f5def01a4fb15e0a79 Mon Sep 17 00:00:00 2001 From: Julien Palard Date: Fri, 26 May 2023 16:15:45 +0200 Subject: [PATCH] Bye bye closed source blob. --- .github/workflows/build.yml | 24 --------------------- .github/workflows/deploy.yml | 42 ------------------------------------ 2 files changed, 66 deletions(-) delete mode 100644 .github/workflows/build.yml delete mode 100644 .github/workflows/deploy.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml deleted file mode 100644 index db066e3..0000000 --- a/.github/workflows/build.yml +++ /dev/null @@ -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 }} diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml deleted file mode 100644 index 8f21c5f..0000000 --- a/.github/workflows/deploy.yml +++ /dev/null @@ -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