-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (31 loc) · 948 Bytes
/
test.yaml
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
on:
push:
branches:
- main
- staging
env:
APP_NAME: test
CLUSTER_NAME: ${{ github.ref == 'refs/heads/main' && 'test-prod' || 'test-staging' }}
ECR_REGISTRY: ${{ vars.AWS_ACCOUNT_ID }}.dkr.ecr.${{ github.ref == 'refs/heads/main' && vars.PROD_AWS_REGION || vars.STAGING_AWS_REGION }}.amazonaws.com
ENV: test
HELM_VALUES: deploy/values.yml
DOMAIN_NAME: test.com
jobs:
setup:
name: Setup workflow
runs-on: ubuntu-latest
steps:
- name: Checkout
id: checkout
uses: actions/checkout@v4
- name: Output all variables
id: test
shell: bash
run: |
echo "APP_NAME: ${{ env.APP_NAME }}"
echo "CLUSTER_NAME: ${{ env.CLUSTER_NAME }}"
echo "ECR_REGISTRY: ${{ env.ECR_REGISTRY }}"
echo "ENV: ${{ env.ENV }}"
echo "HELM_VALUES: ${{ env.HELM_VALUES }}"
echo "DOMAIN_NAME: ${{ env.DOMAIN_NAME }}"