diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml new file mode 100644 index 0000000..d08bfbb --- /dev/null +++ b/.github/workflows/test.yaml @@ -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 }}"