From 9c07a89af0f1a6efbf37e1b1ca4fe05cb2993cf5 Mon Sep 17 00:00:00 2001 From: Torben Ewert Date: Fri, 1 May 2026 15:14:35 +0200 Subject: [PATCH] docs: update ci for deploying website --- .github/workflows/deploy-docs.yml | 40 +------------------------------ 1 file changed, 1 insertion(+), 39 deletions(-) diff --git a/.github/workflows/deploy-docs.yml b/.github/workflows/deploy-docs.yml index 414ca5d..a3c4f89 100644 --- a/.github/workflows/deploy-docs.yml +++ b/.github/workflows/deploy-docs.yml @@ -2,7 +2,7 @@ name: Docs on: push: - branches: + branches: - master - docs @@ -58,41 +58,3 @@ jobs: subject-name: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME}} subject-digest: ${{ steps.push.outputs.digest }} push-to-registry: true - - deploy: - needs: build-and-push-image - runs-on: ubuntu-latest - steps: - # Checkout latest or specific tag - - name: Checkout repository - uses: actions/checkout@v4 - - - name: Create .env file - run: | - echo "Generating .env file" - echo "# Autogenerated" > ./website/deploy/.env - echo "DOMAIN=${{ vars.DOMAIN }}" >> ./website/deploy/.env - echo "IMAGE=${{ fromJSON(needs.build-and-push-image.outputs.docker-meta-json).tags[0] }}" >> ./website/deploy/.env - - - name: Copy files to server - uses: appleboy/scp-action@v0.1.7 - with: - host: ${{ vars.DEPLOY_HOST }} - username: ${{ vars.DEPLOY_USERNAME }} - key: ${{ secrets.DEPLOY_KEY }} - source: "website/deploy/docker-compose.yml,website/deploy/.env" - target: ${{ vars.DEPLOY_HOST_PATH }} - strip_components: 2 - - - name: Start deployed service - uses: appleboy/ssh-action@v0.1.5 - with: - host: ${{ vars.DEPLOY_HOST }} - username: ${{ vars.DEPLOY_USERNAME }} - key: ${{ secrets.DEPLOY_KEY }} - port: 22 - script: | - cd ${{ vars.DEPLOY_HOST_PATH }} - docker logout ghcr.io - docker compose pull - docker compose up -d -- 2.51.2