Skip to content

Attempt to fix empty vars issue. (#81) #6

Attempt to fix empty vars issue. (#81)

Attempt to fix empty vars issue. (#81) #6

name: Deploy Website to EC2 staging
on:
push:
branches:
- main
jobs:
fetch-vars:
runs-on: ubuntu-latest
environment: staging
outputs:
website_service_name: ${{ steps.set-vars.outputs.website_service_name }}
website_service_path: ${{ steps.set-vars.outputs.website_service_path }}
steps:
- name: Set Environment Variables
id: set-vars
run: |
echo "::set-output name=website_service_name::${{ vars.WEBSITE_SERVICE_NAME }}"
echo "::set-output name=website_service_path::${{ vars.WEBSITE_SERVICE_PATH }}"
deploy:
needs: fetch-vars
uses: ./.github/workflows/deploy-dotnet-service-ec2.yml
secrets: inherit
with:
project-name: Website
dotnet-version: '8.0.x'
service-name: ${{ needs.fetch-vars.outputs.website_service_name }}
service-path: ${{ needs.fetch-vars.outputs.website_service_path }}