mirror of
https://github.com/GNS3/gns3-registry.git
synced 2024-12-24 06:56:41 +00:00
Merge pull request #930 from GNS3/use-venv-build-docker-images
Setup Python venv in build-docker-images workflow
This commit is contained in:
commit
68a0e4646d
3
.github/workflows/build-docker-images.yml
vendored
3
.github/workflows/build-docker-images.yml
vendored
@ -59,7 +59,7 @@ jobs:
|
|||||||
username: ${{ github.repository_owner }}
|
username: ${{ github.repository_owner }}
|
||||||
password: ${{ secrets.GITHUB_TOKEN }}
|
password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Install python requirements
|
- name: Setup Virtual Environment & Install python requirements
|
||||||
run: |
|
run: |
|
||||||
python3 -m venv venv
|
python3 -m venv venv
|
||||||
source ./venv/bin/activate
|
source ./venv/bin/activate
|
||||||
@ -93,6 +93,7 @@ jobs:
|
|||||||
#
|
#
|
||||||
IMAGES: ${{ inputs.images }}
|
IMAGES: ${{ inputs.images }}
|
||||||
run: |
|
run: |
|
||||||
|
source ./venv/bin/activate
|
||||||
DOCKER_REPOSITORY=$(echo "$DOCKER_REPOSITORY" | sed '/^#/d')
|
DOCKER_REPOSITORY=$(echo "$DOCKER_REPOSITORY" | sed '/^#/d')
|
||||||
set -f
|
set -f
|
||||||
set -- $IMAGES
|
set -- $IMAGES
|
||||||
|
Loading…
Reference in New Issue
Block a user