Skip to content

Commit

Permalink
switch to sb1u runner
Browse files Browse the repository at this point in the history
  • Loading branch information
havardthom committed Sep 19, 2024
1 parent ca65ea0 commit 87b52de
Showing 1 changed file with 15 additions and 6 deletions.
21 changes: 15 additions & 6 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:

jobs:
build-and-deploy:
runs-on: ubuntu-latest
runs-on: [sb1u]

steps:
- name: Checkout to the branch
Expand All @@ -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/#@v2
uses: azure/#@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:
Expand Down

0 comments on commit 87b52de

Please # to comment.