From a96b3c897cbdaaf9ddb5c6f6581753b78f2af572 Mon Sep 17 00:00:00 2001 From: Jonathan Bourdon Date: Tue, 5 May 2026 22:41:12 -0400 Subject: [PATCH] chore(ci): fix gitea registry deploy workflow --- .gitea/workflows/deploy-socialize.yml | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/deploy-socialize.yml b/.gitea/workflows/deploy-socialize.yml index 61d9e15..e9be146 100644 --- a/.gitea/workflows/deploy-socialize.yml +++ b/.gitea/workflows/deploy-socialize.yml @@ -9,16 +9,23 @@ jobs: test: runs-on: dotnet steps: + - name: Install checkout dependencies + run: apt-get update && apt-get install -y git nodejs - uses: actions/checkout@v4 - run: dotnet test backend/Socialize.slnx image: needs: test - runs-on: docker + runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + - name: Install Docker CLI + run: apt-get update && apt-get install -y docker.io - name: Login to Gitea container registry - run: docker login git.mapachotes.com -u "$REGISTRY_USER" -p "$REGISTRY_PASSWORD" + env: + REGISTRY_USER: ${{ secrets.REGISTRY_USER }} + REGISTRY_PASSWORD: ${{ secrets.REGISTRY_PASSWORD }} + run: printf '%s' "$REGISTRY_PASSWORD" | docker login git.mapachotes.com -u "$REGISTRY_USER" --password-stdin - name: Build images run: | docker build \ @@ -44,6 +51,10 @@ jobs: - name: Install SSH client run: apt-get update && apt-get install -y openssh-client - name: Deploy on sobina + env: + DEPLOY_HOST: ${{ secrets.DEPLOY_HOST }} + DEPLOY_USER: ${{ secrets.DEPLOY_USER }} + DEPLOY_SSH_PRIVATE_KEY: ${{ secrets.DEPLOY_SSH_PRIVATE_KEY }} run: | mkdir -p ~/.ssh printf '%s\n' "$DEPLOY_SSH_PRIVATE_KEY" > ~/.ssh/deploy_key