Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
TjerkNan committed Oct 14, 2024
1 parent 0da6673 commit 3ab9c95
Showing 1 changed file with 9 additions and 28 deletions.
37 changes: 9 additions & 28 deletions .github/workflows/build_venv.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,36 +6,17 @@ on:
- v*
jobs:
build:
strategy:
matrix:
python_version: ['3.11']
runs-on: ubuntu-22.04
steps:
- name: Set env
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
- name: Checkout code
uses: actions/checkout@v4
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV &&
echo "PKG_NAME=`basename $GITHUB_REPOSITORY -private`" >> $GITHUB_ENV

- name: Install required libraries
run: sudo apt install -y libsystemd-dev

- name: prep
run: sudo mkdir -p /usr/local/rdo-journalert-private/current/

- name: prep chown
run: sudo chown `id -u`:`id -g` /usr/local/rdo-journalert-private/current/

- name: copy project to run location.
run: cp -r ./requirements.txt /usr/local/rdo-journalert-private/current/

- name: Create env
run: python3 -m venv /usr/local/rdo-journalert-private/current/.venv

- name: pip3 install
run: cd /usr/local/rdo-journalert-private/current; source .venv/bin/activate; pip install -U pip; pip install -r requirements.txt

- name: Create archive
run: cd /usr/local/rdo-journalert-private/current/; tar -czf $GITHUB_WORKSPACE/rdo-journalert-private_venv_${{ env.RELEASE_VERSION }}.tar.gz .venv

- name: Upload venv tar
uses: actions/upload-artifact@v4
- name: Build venv package
uses: minvws/nl-irealisatie-generic-pipelines/.github/actions/python-venv-package@main
with:
name: rdo-journalert-private_venv_${{ env.RELEASE_VERSION }}
path: rdo-journalert-private_venv_${{ env.RELEASE_VERSION }}.tar.gz
python_version: ${{ matrix.python_version }}
package_file_name: ${{ env.PKG_NAME }}

0 comments on commit 3ab9c95

Please sign in to comment.