Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
Signed-off-by: bvolovat <[email protected]>
  • Loading branch information
bvolovat committed Jan 26, 2025
1 parent 3bc5a4c commit 11268f6
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions .github/workflows/performance-1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -140,17 +140,12 @@ jobs:
--dry-run=client -o yaml | kubectl apply -f -
- name: Deploy the Collect Metrics Job
run: |
# Get repository info
REPO_OWNER="${GITHUB_REPOSITORY_OWNER}"
REPO_NAME="${GITHUB_REPOSITORY#*/}"
run: |
# Replace variables in the job yaml
TIMESTAMP=$(date +%Y%m%d-%H%M%S)
cat collect-metrics-job.yaml | \
sed "s/\$(DATE)/$TIMESTAMP/" | \
sed "s/\$(DURATION_TIME)/${{ github.event.inputs.DURATION_TIME }}/" | \
sed "s/\$(REPO_OWNER)/${REPO_OWNER}/" | \
sed "s/\$(REPO_NAME)/${REPO_NAME}/" | \
sed "s/\$(REPO_BRANCH)/${GITHUB_REF_NAME}/" | \
kubectl apply -f -
echo "Metrics collection job deployed with duration: ${{ github.event.inputs.DURATION_TIME }} minutes"

0 comments on commit 11268f6

Please sign in to comment.