Skip to content

broke deploy into its own workflow #1

broke deploy into its own workflow

broke deploy into its own workflow #1

Workflow file for this run

name: Deploy to linode

Check failure on line 1 in .github/workflows/deploy.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/deploy.yaml

Invalid workflow file

`deploy` is not a valid event name
on:
workflow_call:
secrets:
SSH_KEY_PRIV:
required: true
CACHIX_AUTH_TOKEN:
required: true
deploy:
name: Deploy NixOS Machines
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v30
- uses: cachix/cachix-action@v15
with:
name: nexus-ci
authToken: ${{ secrets.CACHIX_AUTH_TOKEN }}
- name: Set up ssh-agent
uses: webfactory/[email protected]
with:
ssh-private-key: ${{ secrets.SSH_KEY_PRIV }}
- name: Test SSH connection to servers
run: ssh -T -o StrictHostKeyChecking=no [email protected]
- name: Ensure that the latest commit is actually going to be pulled by docker
env:
TAG: commit-${{ github.sha }}
run: |
ssh -o StrictHostKeyChecking=no [email protected] \
docker pull "ghcr.io/nexussocial/identity-server:${TAG}"
- name: Deploy via deploy-rs
run: nix run .#deploy-rs -- .