Обновить .gitea/workflows/gitea-actions.yml
	
		
			
	
		
	
	
		
	
		
			Some checks failed
		
		
	
	
		
			
				
	
				Gitea Actions / Build and deploy (push) Failing after 17s
				
			
		
	
	
				
					
				
			
		
			Some checks failed
		
		
	
	Gitea Actions / Build and deploy (push) Failing after 17s
				
			This commit is contained in:
		
							parent
							
								
									c1ad77ea39
								
							
						
					
					
						commit
						f67cea49d0
					
				|  | @ -11,18 +11,6 @@ jobs: | |||
|         run: |  | ||||
|           echo "${{ secrets.ENVIRONMENT }}" > ./.env | ||||
|           cat ./.env | ||||
|       - name: Know current user and host | ||||
|         run: | | ||||
|           echo $USER | ||||
|           hostname -I | awk '{print $1}'    | ||||
|       - name: Stop site service on remote server   | ||||
|         uses: D3rHase/ssh-command-action@v0.2.2 | ||||
|         with: | ||||
|           host: ${{secrets.SSH_HOST}} | ||||
|           user: ${{secrets.SSH_USER}} | ||||
|           private_key: ${{secrets.SSH_KEY}} | ||||
|           command: | | ||||
|             systemctl stop resume | ||||
|       - name: Checkout code | ||||
|         uses: actions/checkout@v3 | ||||
|       - name: Install PHP | ||||
|  | @ -50,15 +38,10 @@ jobs: | |||
|         env: | ||||
|           SSH_PRIVATE_KEY: ${{ secrets.SSH_KEY }} | ||||
|           ARGS: "-rlgoDzvc -i --delete"   | ||||
|           SOURCE: "site/" | ||||
|           REMOTE_HOST: ${{ secrets.SSH_HOST }} | ||||
|           REMOTE_USER: ${{ secrets.SSH_USER }} | ||||
|           TARGET: ${{ secrets.SSH_DIR }} | ||||
|       - name: Start site service on remote server | ||||
|         uses: D3rHase/ssh-command-action@v0.2.2 | ||||
|         with: | ||||
|           host: ${{secrets.SSH_HOST}} | ||||
|           user: ${{secrets.SSH_USER}} | ||||
|           private_key: ${{secrets.SSH_KEY}} | ||||
|           command: | | ||||
|           SCRIPT_BEFORE: | | ||||
|             systemctl stop resume | ||||
|           SCRIPT_AFTER: | | ||||
|             systemctl start resume | ||||
		Loading…
	
		Reference in New Issue