fix: Clear failure reason when an eval succeeds #1048
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
| name: Deployments | |
| on: | |
| # Run the deployment only once staging has been prepared. | |
| workflow_run: | |
| workflows: ["Dry activations"] | |
| branches: [main] | |
| types: | |
| - completed | |
| push: | |
| branches: [main, production] | |
| jobs: | |
| deploy-environment: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| include: | |
| - environment: staging | |
| host: tracker-staging.security.nixos.org | |
| branch: main | |
| - environment: production | |
| host: tracker.security.nixos.org | |
| branch: production | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: cachix/install-nix-action@v29 | |
| - uses: webfactory/[email protected] | |
| with: | |
| ssh-private-key: ${{ secrets.DEPLOY_SSH_PRIVATE_KEY }} | |
| - name: Trust staging server public SSH host keys | |
| run: cat ./infra/host_keys >> ~/.ssh/known_hosts | |
| - name: Deploy to ${{ matrix.environment }} | |
| # Only deploy production when on production branch | |
| if: github.ref_name == matrix.branch | |
| run: nix-shell default.nix -A ci --run "deploy switch ${{ matrix.host }}" |