Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 1 addition & 38 deletions .github/workflows/app-deploy.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Release
name: Release image

on:
workflow_dispatch:
Expand Down Expand Up @@ -55,40 +55,3 @@ jobs:
docker push ghcr.io/hyperleda/hyperleda:$GIT_VERSION
docker tag ghcr.io/hyperleda/hyperleda:$GIT_VERSION ghcr.io/hyperleda/hyperleda:latest
docker push ghcr.io/hyperleda/hyperleda:latest

deploy-test:
name: Deploy to test environment
needs: push-docker
environment: testing
runs-on: ubuntu-latest
env:
HOST: ${{ secrets.BACKEND_HOST }}
BACKEND_USER: ${{ secrets.BACKEND_USER }}
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Install uv
uses: astral-sh/setup-uv@v5

- name: Install the project
run: uv sync --all-extras --dev

- name: Setup SSH agent
uses: webfactory/ssh-agent@v0.9.0
with:
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}

- name: Write private key and config
run: |
mkdir infra/settings
echo "${{ secrets.TEST_DEPLOY_CONFIG }}" >> infra/settings/test.yaml
echo "${{ secrets.SSH_PRIVATE_KEY }}" >> infra/hyperleda_rsa

- name: Add backend to known hosts
run: |
ssh-keyscan -H ${{ secrets.BACKEND_HOST }} >> ~/.ssh/known_hosts

- name: Copy files and restart the backend
run: |
make deploy-test
1 change: 0 additions & 1 deletion infra/.env

This file was deleted.

1 change: 0 additions & 1 deletion infra/.gitignore

This file was deleted.

32 changes: 0 additions & 32 deletions infra/configs/nginx/nginx.conf

This file was deleted.

86 changes: 0 additions & 86 deletions infra/deploy.py

This file was deleted.

187 changes: 0 additions & 187 deletions infra/deployment.py

This file was deleted.

Loading
Loading