Skip to content

Commit

Permalink
test gh wf
Browse files Browse the repository at this point in the history
  • Loading branch information
sanbotto committed Jun 5, 2024
1 parent 46821a4 commit 2f8f45f
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,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 }}"

0 comments on commit 2f8f45f

Please sign in to comment.