Skip to content

Commit

Permalink
fix 4
Browse files Browse the repository at this point in the history
  • Loading branch information
TjerkNan committed Oct 14, 2024
1 parent 93be1c3 commit ddb2985
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/build_venv.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,25 +17,25 @@ jobs:
run: sudo apt install -y libsystemd-dev

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

- name: prep chown
run: sudo chown `id -u`:`id -g` /usr/local/rdo-journalert/current/
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/current/
run: cp -r ./requirements.txt /usr/local/rdo-journalert-private/current/

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

- name: pip3 install
run: cd /usr/local/rdo-journalert/current; source .venv/bin/activate; pip install -U pip; pip install -r requirements.txt
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/current/; tar -czf $GITHUB_WORKSPACE/rdo-journalert_venv_${{ env.RELEASE_VERSION }}.tar.gz .venv
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
with:
name: rdo-journalert_venv_${{ env.RELEASE_VERSION }}
path: rdo-journalert_venv_${{ env.RELEASE_VERSION }}.tar.gz
name: rdo-journalert-private_venv_${{ env.RELEASE_VERSION }}
path: rdo-journalert-private_venv_${{ env.RELEASE_VERSION }}.tar.gz
8 changes: 4 additions & 4 deletions .github/workflows/create_release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ jobs:
- uses: actions/checkout@v4
- name: Create version.json
run: |
echo "{ \"version\": \"${{ env.RELEASE_VERSION }}\", \"git_ref\": \"$GITHUB_SHA\"}" > rdo-journalert/version.json
echo "{ \"version\": \"${{ env.RELEASE_VERSION }}\", \"git_ref\": \"$GITHUB_SHA\"}" > rdo-journalert-private/version.json
- name: Create tar
run: tar -czf rdo-journalert_${{ env.RELEASE_VERSION }}.tar.gz rdo-journalert
run: tar -czf rdo-journalert-private_${{ env.RELEASE_VERSION }}.tar.gz rdo-journalert-private
- name: Upload release tar
uses: actions/upload-artifact@v4
with:
name: rdo-journalert_${{ env.RELEASE_VERSION }}
path: rdo-journalert_${{ env.RELEASE_VERSION }}.tar.gz
name: rdo-journalert-private_${{ env.RELEASE_VERSION }}
path: rdo-journalert-private_${{ env.RELEASE_VERSION }}.tar.gz

0 comments on commit ddb2985

Please sign in to comment.