Skip to content

ci: add githubaction for feature environments #5

ci: add githubaction for feature environments

ci: add githubaction for feature environments #5

# The name of the deployment
name: Trigger auto deployment for containerapps
# When this action will be executed
on:
push:
branches:
- 'feature/**'
workflow_dispatch:
jobs:
push_to_registry:
environment: playground
name: Push Docker image to Container App
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v3
- name: Log in to Azure
uses: azure/login@v1
with:
creds: ${{ secrets.AZURE_CREDENTIALS }}
- name: Create env file
run: |
echo "${{ secrets.AZURE_BLOB_STORAGE_ACCOUNT }}" >> ./ethereal-nexus-dashboard/.env
echo "${{ secrets.AZURE_BLOB_STORAGE_SECRET }}" >> ./ethereal-nexus-dashboard/.env
echo "${{ secrets.PGHOST }}" >> ./ethereal-nexus-dashboard/.env
echo "${{ secrets.PGUSER }}" >> ./ethereal-nexus-dashboard/.env
echo "${{ secrets.PGPORT }}" >> ./ethereal-nexus-dashboard/.env
echo "${{ secrets.PGPASSWORD }}" >> ./ethereal-nexus-dashboard/.env
echo "${{ secrets.NEXT_AUTH_SECRET }}" >> ./ethereal-nexus-dashboard/.env
- name: Deploy Container App
uses: azure/container-apps-deploy-action@v1
with:
appSourcePath: ${{ github.workspace }}/ethereal-nexus-dashboard
acrName: etherealnexus
acrUsername: ${{ secrets.REGISTRY_USERNAME }}
acrPassword: ${{ secrets.REGISTRY_PASSWORD }}
resourceGroup: RG-ethereal_realms_accelerator
containerAppEnvironment: ethereal-nexus-env
location: westeurope
gs

Check failure on line 46 in .github/workflows/dashboard-feature-env.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/dashboard-feature-env.yml

Invalid workflow file

You have an error in your yaml syntax on line 46