Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changed extracting path of pyinstaller from /tmp to /opt/netfoundry #12

Merged
merged 3 commits into from
Oct 4, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 7 additions & 24 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ jobs:
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Use pyinstall to create distribution binary
run: pyinstaller -F router_upgrade_bootstrap.py
run: pyinstaller -F router_upgrade_bootstrap.py --runtime-tmpdir /opt/netfoundry/
- name: Use pyinstall to create main binary
run: pyinstaller -F router_upgrade.py
run: pyinstaller -F router_upgrade.py --runtime-tmpdir /opt/netfoundry/
- name: version
run: echo "version=$(./dist/router_upgrade -v)" >> $GITHUB_ENV
id: version
Expand All @@ -37,33 +37,16 @@ jobs:
- name: Tar main script
# tar with previous distibuted name for backwards compatibility
run: cd dist; mv router_upgrade .router_upgrade; tar -zcvf router_upgrade.tar.gz .router_upgrade

- name: release
uses: actions/create-release@v1
uses: ncipollo/release-action@v1
id: release
with:
draft: false
prerelease: false
release_name: v${{ env.version }}
tag_name: v${{ env.version }}
env:
GITHUB_TOKEN: ${{ github.token }}

- name: Upload router_upgrade bootstrap release
uses: actions/upload-release-asset@v1
tag: v${{ env.version }}
artifacts: "dist/router_upgrade_bootstrap.tar.gz,dist/router_upgrade.tar.gz"
artifactContentType: application/gzip
env:
GITHUB_TOKEN: ${{ github.token }}
with:
upload_url: ${{ steps.release.outputs.upload_url }}
asset_path: dist/router_upgrade_bootstrap.tar.gz
asset_name: router_upgrade_bootstrap.tar.gz
asset_content_type: application/gzip

- name: Upload router_upgrade release
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ github.token }}
with:
upload_url: ${{ steps.release.outputs.upload_url }}
asset_path: dist/router_upgrade.tar.gz
asset_name: router_upgrade.tar.gz
asset_content_type: application/gzip
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@

All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [1.2.0]

### Changed

- Changed extracting path of pyinstaller from /tmp to /opt/netfoundry


## [1.1.2] - 2023-07-17

### Added
Expand Down
2 changes: 1 addition & 1 deletion router_upgrade.py
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ def main():
"""
Main logic
"""
__version__ = '1.1.2'
__version__ = '1.2.0'
# Change log
# See https://github.com/netfoundry/edge-router-upgrade/blob/main/CHANGELOG.md

Expand Down