-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use oryx for building packages in gh action
- Loading branch information
Showing
1 changed file
with
7 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,19 +17,15 @@ jobs: | |
- name: 'Checkout GitHub action' | ||
uses: actions/checkout@v2 | ||
|
||
- name: Setup Python ${{ env.PYTHON_VERSION }} Environment | ||
uses: actions/setup-python@v1 | ||
- name: 'Run docker oryx build' | ||
uses: addnab/docker-run-action@v3 | ||
with: | ||
python-version: ${{ env.PYTHON_VERSION }} | ||
image: mcr.microsoft.com/oryx/build:latest | ||
options: -v ${{ github.workspace }}:/repo | ||
run: oryx build /repo --output /repo | ||
|
||
- name: 'Resolve Project Dependencies Using Pip' | ||
shell: bash | ||
run: | | ||
pushd './${{ env.AZURE_FUNCTIONAPP_PACKAGE_PATH }}' | ||
python -m pip install --upgrade pip | ||
pip install -r requirements.txt --target=".python_packages/lib/site-packages" | ||
zip -r release.zip . | ||
popd | ||
- name: Zip everything | ||
run: zip -r release.zip * | ||
|
||
- name: Create Release | ||
uses: ncipollo/[email protected] | ||
|