diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index a249609..3ab70d7 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -11,7 +11,7 @@ on: jobs: build-and-deploy: - runs-on: ubuntu-latest + runs-on: [sb1u] steps: - name: Checkout to the branch @@ -22,18 +22,27 @@ jobs: with: node-version: "20.x" - - name: Set up Postgresql with prisma - run: | - DATABASE_URL=${{secrets.DATABASE_URL}} npx prisma generate - DATABASE_URL=${{secrets.DATABASE_URL}} npx prisma migrate deploy + - uses: actions/setup-python@v5 + with: + python-version: "3.11" + cache: "pip" + + - name: Install Azure CLI + run: pip install azure-cli + + # - name: Set up Postgresql with prisma + # run: | + # DATABASE_URL=${{secrets.DATABASE_URL}} npx prisma generate + # DATABASE_URL=${{secrets.DATABASE_URL}} npx prisma migrate deploy - name: Azure Login - uses: azure/login@v2 + uses: azure/login@v1 with: client-id: ${{ secrets.AZURE_CLIENT_ID }} tenant-id: ${{ secrets.AZURE_TENANT_ID }} subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }} + - name: Build and push container image to registry uses: azure/container-apps-deploy-action@v1 with: