Обновить .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: |  |         run: |  | ||||||
|           echo "${{ secrets.ENVIRONMENT }}" > ./.env |           echo "${{ secrets.ENVIRONMENT }}" > ./.env | ||||||
|           cat ./.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 |       - name: Checkout code | ||||||
|         uses: actions/checkout@v3 |         uses: actions/checkout@v3 | ||||||
|       - name: Install PHP |       - name: Install PHP | ||||||
|  | @ -50,15 +38,10 @@ jobs: | ||||||
|         env: |         env: | ||||||
|           SSH_PRIVATE_KEY: ${{ secrets.SSH_KEY }} |           SSH_PRIVATE_KEY: ${{ secrets.SSH_KEY }} | ||||||
|           ARGS: "-rlgoDzvc -i --delete"   |           ARGS: "-rlgoDzvc -i --delete"   | ||||||
|           SOURCE: "site/" |  | ||||||
|           REMOTE_HOST: ${{ secrets.SSH_HOST }} |           REMOTE_HOST: ${{ secrets.SSH_HOST }} | ||||||
|           REMOTE_USER: ${{ secrets.SSH_USER }} |           REMOTE_USER: ${{ secrets.SSH_USER }} | ||||||
|           TARGET: ${{ secrets.SSH_DIR }} |           TARGET: ${{ secrets.SSH_DIR }} | ||||||
|       - name: Start site service on remote server |           SCRIPT_BEFORE: | | ||||||
|         uses: D3rHase/ssh-command-action@v0.2.2 |             systemctl stop resume | ||||||
|         with: |           SCRIPT_AFTER: | | ||||||
|           host: ${{secrets.SSH_HOST}} |  | ||||||
|           user: ${{secrets.SSH_USER}} |  | ||||||
|           private_key: ${{secrets.SSH_KEY}} |  | ||||||
|           command: | |  | ||||||
|             systemctl start resume |             systemctl start resume | ||||||
		Loading…
	
		Reference in New Issue