Add missing commits from storefront pages branch (#670) #391
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # SPDX-FileCopyrightText: 2024 JWP Consulting GK | |
| # | |
| # SPDX-License-Identifier: AGPL-3.0-or-later | |
| name: Build all containers using Nix | |
| permissions: | |
| packages: write | |
| on: | |
| pull_request: | |
| push: | |
| branches: | |
| - "main" | |
| jobs: | |
| projectify-backend: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: ./.github/actions/set-up-nix-docker | |
| with: | |
| build_target: .#projectify-backend-container | |
| package_name: projectify-backend | |
| username: ${{ github.actor }} | |
| password: ${{ secrets.GITHUB_TOKEN }} | |
| projectify-celery: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: ./.github/actions/set-up-nix-docker | |
| with: | |
| build_target: .#projectify-celery-container | |
| package_name: projectify-celery | |
| username: ${{ github.actor }} | |
| password: ${{ secrets.GITHUB_TOKEN }} | |
| projectify-frontend: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: ./.github/actions/set-up-nix-docker | |
| with: | |
| build_target: .#projectify-frontend-node-container | |
| package_name: projectify-frontend-node | |
| username: ${{ github.actor }} | |
| password: ${{ secrets.GITHUB_TOKEN }} | |
| projectify-revproxy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: ./.github/actions/set-up-nix-docker | |
| with: | |
| build_target: .#projectify-revproxy-container | |
| package_name: projectify-revproxy | |
| username: ${{ github.actor }} | |
| password: ${{ secrets.GITHUB_TOKEN }} | |
| deploy-on-render: | |
| # Only deplo if we are on main | |
| if: ${{ github.ref_name == 'main' }} | |
| needs: | |
| - projectify-backend | |
| - projectify-celery | |
| - projectify-frontend | |
| - projectify-revproxy | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Trigger deploy hooks | |
| env: | |
| deploy_backend_url: ${{ secrets.RENDER_DEPLOY_HOOK_URL_PROJECTIFY_BACKEND }} | |
| deploy_celery_url: ${{ secrets.RENDER_DEPLOY_HOOK_URL_PROJECTIFY_CELERY }} | |
| deploy_frontend_url: ${{ secrets.RENDER_DEPLOY_HOOK_URL_PROJECTIFY_FRONTEND }} | |
| deploy_revproxy_url: ${{ secrets.RENDER_DEPLOY_HOOK_URL_PROJECTIFY_REVPROXY }} | |
| run: | | |
| curl "$deploy_backend_url" | |
| curl "$deploy_celery_url" | |
| curl "$deploy_frontend_url" | |
| curl "$deploy_revproxy_url" |