Обновить .gitea/workflows/gitea-actions.yml
	
		
			
	
		
	
	
		
	
		
			Some checks failed
		
		
	
	
		
			
				
	
				Gitea Actions / Build and deploy (push) Failing after 9s
				
			
		
	
	
				
					
				
			
		
			Some checks failed
		
		
	
	Gitea Actions / Build and deploy (push) Failing after 9s
				
			This commit is contained in:
		
							parent
							
								
									b94dfa1742
								
							
						
					
					
						commit
						764ffcebe9
					
				|  | @ -11,10 +11,18 @@ jobs: | ||||||
|         run: |  |         run: |  | ||||||
|           cat ${{ secrets.ENV_PROD }} > .env |           cat ${{ secrets.ENV_PROD }} > .env | ||||||
|           cat ./.env |           cat ./.env | ||||||
|       # - name: Stop site service  |       - name: Stop site service on remote server | ||||||
|       #  run: systemctl stop resume |         uses: D3rHase/ssh-command-action@v0.2.2 | ||||||
|  |         with: | ||||||
|  |           host: ${{secrets.SSH_HOST}} | ||||||
|  |           user: ${{secrets.SSH_USER}} | ||||||
|  |           private_key: ${{secrets.SSH_PRIVATE_KEY}} | ||||||
|  |           command: | | ||||||
|  |             systemctl stop resume | ||||||
|       - name: Checkout code |       - name: Checkout code | ||||||
|         uses: actions/checkout@v3 |         uses: actions/checkout@v3 | ||||||
|  |       - name: Install PHP | ||||||
|  |         run: apt update && apt install -y php-cli php-intl php-mbstring php-xml php-zip  | ||||||
|       - name: Install Composer |       - name: Install Composer | ||||||
|         run: | |         run: | | ||||||
|           php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" |           php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" | ||||||
|  | @ -42,5 +50,11 @@ jobs: | ||||||
|           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 |       - name: Start site service on remote server | ||||||
|       #  run: systemctl start resume |         uses: D3rHase/ssh-command-action@v0.2.2 | ||||||
|  |         with: | ||||||
|  |           host: ${{secrets.SSH_HOST}} | ||||||
|  |           user: ${{secrets.SSH_USER}} | ||||||
|  |           private_key: ${{secrets.SSH_PRIVATE_KEY}} | ||||||
|  |           command: | | ||||||
|  |             systemctl start resume | ||||||
		Loading…
	
		Reference in New Issue