Skip to content

Commit ef332bb

Browse files
committed
[DEVOPS-584] pass credentials to pixi for Artifactory
1 parent 3a96256 commit ef332bb

3 files changed

Lines changed: 11 additions & 0 deletions

File tree

.github/actions/reusable-python-setup_pixi/action.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ inputs:
99
description: 'Name of the pixi environment to create'
1010
required: true
1111
type: string
12+
JFROG_ARTIFACTORY_URL:
13+
description: 'JFrog Artifactory URL'
14+
required: true
15+
type: string
1216
JFROG_ARTIFACTORY_TOKEN:
1317
description: 'JFrog Artifactory Token'
1418
required: true
@@ -24,5 +28,8 @@ runs:
2428
cache-key: pixi-env{{ inputs.cache-number }}
2529
cache: true
2630
locked: true
31+
auth-host: ${{ inputs.JFROG_ARTIFACTORY_URL }}
32+
auth-username: github
33+
auth-password: ${{ inputs.JFROG_ARTIFACTORY_TOKEN }}
2734
env:
2835
GIT_LFS_SKIP_SMUDGE: 1

.github/workflows/reusable-python-pytest.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,8 @@ jobs:
119119
with:
120120
cache-number: ${{ inputs.cache-number }}
121121
pixi-env: ${{ inputs.python-version }}
122+
JFROG_ARTIFACTORY_URL: ${{ secrets.JFROG_ARTIFACTORY_URL }}
123+
JFROG_ARTIFACTORY_TOKEN: ${{ secrets.JFROG_ARTIFACTORY_TOKEN }}
122124

123125
- name: Run Pytest
124126
run: |

.github/workflows/reusable-python-static_analysis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,8 @@ jobs:
106106
with:
107107
cache-number: ${{ inputs.cache-number }}
108108
pixi-env: ${{ inputs.python-version }}
109+
JFROG_ARTIFACTORY_URL: ${{ secrets.JFROG_ARTIFACTORY_URL }}
110+
JFROG_ARTIFACTORY_TOKEN: ${{ secrets.JFROG_ARTIFACTORY_TOKEN }}
109111

110112
- name: Capture modified files
111113
if: github.event_name == 'pull_request'

0 commit comments

Comments
 (0)