diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b5c1ccaa4..3c4106236 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -10,7 +10,7 @@ env: jobs: backend: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 defaults: run: working-directory: 'src/backend' @@ -29,7 +29,7 @@ jobs: - name: Run component tests run: dotnet test tests/FoodDiary.ComponentTests --no-restore --verbosity normal frontend: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 defaults: run: working-directory: 'src/frontend' @@ -51,7 +51,7 @@ jobs: needs: - backend - frontend - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 timeout-minutes: 10 defaults: run: @@ -83,7 +83,7 @@ jobs: if: always() run: docker compose down run-migrations: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 needs: e2e-tests if: ${{ github.ref == 'refs/heads/main' }} steps: @@ -96,7 +96,7 @@ jobs: run: dotnet run --configuration Release --project src/backend/src/FoodDiary.Migrator/FoodDiary.Migrator.csproj "${{ secrets.Migrator_DatabaseConnectionString }}" build-and-push-image: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 needs: run-migrations if: ${{ github.ref == 'refs/heads/main' }} steps: @@ -115,7 +115,7 @@ jobs: docker push cr.yandex/$CR_REGISTRY/$CR_REPOSITORY:$IMAGE_TAG deploy: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 needs: build-and-push-image if: ${{ github.ref == 'refs/heads/main' }} steps: diff --git a/.github/workflows/deploy-azure.yml b/.github/workflows/deploy-azure.yml index 75a2d4125..cf506ad46 100644 --- a/.github/workflows/deploy-azure.yml +++ b/.github/workflows/deploy-azure.yml @@ -5,7 +5,7 @@ on: jobs: run-migrations: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v4 - name: Setup .NET @@ -16,7 +16,7 @@ jobs: run: dotnet run --configuration Release --project src/backend/src/FoodDiary.Migrator/FoodDiary.Migrator.csproj "${{ secrets.Migrator_DatabaseConnectionString }}" push-image: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 needs: run-migrations steps: - uses: actions/checkout@v4 @@ -38,7 +38,7 @@ jobs: file: ./Dockerfile deploy-yandex-cloud: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 needs: push-image steps: - name: Checkout to the branch @@ -57,7 +57,7 @@ jobs: imageToDeploy: index.docker.io/${{ secrets.AzureAppService_ContainerUsername_6ff515138c474569b14fb663d02b6c5d }}/food-diary:${{ github.sha }} deploy-container-apps: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 needs: push-image steps: - name: Checkout to the branch @@ -76,7 +76,7 @@ jobs: imageToDeploy: index.docker.io/${{ secrets.AzureAppService_ContainerUsername_6ff515138c474569b14fb663d02b6c5d }}/food-diary:${{ github.sha }} deploy-app-service: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 needs: push-image environment: name: 'production' diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 220b47d3e..5202005e7 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -10,7 +10,7 @@ env: jobs: run-migrations: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v4 - name: Setup .NET @@ -21,7 +21,7 @@ jobs: run: dotnet run --configuration Release --project src/backend/src/FoodDiary.Migrator/FoodDiary.Migrator.csproj "${{ secrets.Migrator_DatabaseConnectionString }}" build-and-push-image: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 needs: run-migrations steps: - name: Checkout to the branch @@ -39,7 +39,7 @@ jobs: docker push cr.yandex/$CR_REGISTRY/$CR_REPOSITORY:$IMAGE_TAG deploy: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 needs: build-and-push-image steps: - name: Deploy Serverless Container