-
Notifications
You must be signed in to change notification settings - Fork 42
36 lines (33 loc) · 1.17 KB
/
weekly-serverless.yml
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
name: Test Serverless Environment
run-name: Creating Serverless Environment by @${{ github.actor }}
on:
workflow_dispatch: # TODO: remove
schedule:
- cron: '0 0 * * 1' # every Monday at 00:00
jobs:
naming:
runs-on: ubuntu-latest
outputs:
deployment_name: ${{ steps.set_deployment_name.outputs.date-name }}
steps:
- name: Set deployment name
id: set_deployment_name
run: |
date_name=$(echo "weekly-env-$(date +'%d-%b')" | tr '[:upper:]' '[:lower:]')
echo "date-name=$date_name" >> $GITHUB_OUTPUT
deploy:
needs: naming
uses: ./.github/workflows/test-environment.yml
secrets: inherit
# Required for the 'Deploy' job in the 'test-environment.yml' to authenticate with Google Cloud (gcloud).
permissions:
contents: 'read'
id-token: 'write'
with:
deployment_name: ${{ needs.naming.outputs.deployment_name }}
# For now, the region is not used because it's overridden in the tf, but it's here for future compatibility.
ess-region: "aws-us-east-1"
elk-stack-version: 9.0.0-SNAPSHOT
serverless_mode: true
run-sanity-tests: true
expiration_days: 0