Skip to content

Commit

Permalink
paths
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasht86 committed Jul 3, 2024
1 parent 7b56cf0 commit 5873d31
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/deploy-with-java.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,13 @@ jobs:
- name: Deploy to prod
env:
VESPA_TEAM_API_KEY: ${{ secrets.VESPA_TEAM_API_KEY }}
working-directory: tests/testapps/production-deployment-with-tests-java
run: |
python .github/workflows/deploy_to_prod.py \
# Run script from project root
python $GITHUB_WORKSPACE/.github/workflows/deploy_to_prod.py \
--tenant vespa-team \
--application testapp \
--api-key "${VESPA_TEAM_API_KEY}" \
--application-root tests/testapps/production-deployment-with-tests-java/target/ \
--api-key ${VESPA_TEAM_API_KEY} \
--application-root . \
--max-wait 3600 \
--source-url "$(git config --get remote.origin.url | sed 's+git@\(.*\):\(.*\)\.git+https://\1/\2+')/commit/$(git rev-parse HEAD)"
2 changes: 1 addition & 1 deletion .github/workflows/deploy_to_prod.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def deploy_prod(
vespa_cloud = VespaCloud(
tenant=tenant,
application=application,
key_content=api_key.replace(r"\n", "\n"),
key_content=api_key,
application_root=application_root,
)
build_no = vespa_cloud.deploy_to_prod(application_root, source_url=source_url)
Expand Down

0 comments on commit 5873d31

Please sign in to comment.