-
Notifications
You must be signed in to change notification settings - Fork 124
Expand file tree
/
Copy pathdeploy.yaml
More file actions
38 lines (30 loc) · 1.26 KB
/
deploy.yaml
File metadata and controls
38 lines (30 loc) · 1.26 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
# See https://docs.vespa.ai/en/operations/automated-deployments for details
name: Deploy an example application with HTTP Tests to production
on:
push:
branches: [ main ]
# Set values as organization or repository secrets
env:
VESPA_CLI_API_KEY: ${{ secrets.API_KEY }}
TENANT_NAME: ${{ secrets.TENANT_NAME }}
APP_NAME: ${{ secrets.APP_NAME }}
defaults:
run:
working-directory: production-deployment-with-tests
jobs:
deploy-production-deployment-with-tests:
runs-on: ubuntu-latest
steps:
# Check out the source code from the repository
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
- name: Get Vespa CLI - update to later versions as needed
run: |
apt update && apt -y install curl
curl -SsLo vespa-cli.tar.gz https://github.com/vespa-engine/vespa/releases/download/v8.653.22/vespa-cli_8.653.22_linux_amd64.tar.gz
tar -xvf vespa-cli.tar.gz && ln -fs vespa-cli_8.653.22_linux_amd64/bin/vespa
- name: Deploy to Vespa Cloud
run: |
./vespa config set target cloud
./vespa config set application "$TENANT_NAME.$APP_NAME"
./vespa prod deploy