ci(release): add make install
	
		
			
	
		
	
	
		
	
		
			Some checks failed
		
		
	
	
		
			
				
	
				Create Release / changelog (push) Failing after 2m0s
				
			
		
		
	
	
				
					
				
			
		
			Some checks failed
		
		
	
	Create Release / changelog (push) Failing after 2m0s
				
			This commit is contained in:
		| @@ -47,9 +47,13 @@ jobs: | |||||||
|           echo "Version - $version" |           echo "Version - $version" | ||||||
|           echo "VERSION=$version" >> $GITHUB_ENV |           echo "VERSION=$version" >> $GITHUB_ENV | ||||||
|  |  | ||||||
|       - name: Build alr binary |       - name: Prepare for install | ||||||
|         run: | |         run: | | ||||||
|           CGO_ENABLED=0 go build -ldflags "-X gitea.plemya-x.ru/Plemya-x/ALR/internal/config.Version=${{ env.VERSION }}" -o alr |           apt-get update && apt-get install -y libcap2-bin | ||||||
|  |  | ||||||
|  |       - name: Build alr | ||||||
|  |         run: | | ||||||
|  |           make build | ||||||
|  |  | ||||||
|       - name: Create tar.gz |       - name: Create tar.gz | ||||||
|         run: | |         run: | | ||||||
| @@ -67,30 +71,35 @@ jobs: | |||||||
|           files: |- |           files: |- | ||||||
|             alr-${{ env.VERSION }}-linux-x86_64.tar.gz |             alr-${{ env.VERSION }}-linux-x86_64.tar.gz | ||||||
|  |  | ||||||
|       - name: Clone alr-default repository |       - name: Checkout alr-default repository | ||||||
|         run: | |         uses: actions/checkout@v4 | ||||||
|           git clone https://gitea:${{ secrets.GITEAPUBLIC  }}@gitea.plemya-x.ru/Plemya-x/alr-default.git /tmp/alr-default |         with: | ||||||
|  |           repository: Plemya-x/alr-default | ||||||
|  |           token: ${{ secrets.GITEAPUBLIC }} | ||||||
|  |           path: alr-default | ||||||
|  |  | ||||||
|       - name: Update version in alr-bin |       - name: Update version in alr-bin | ||||||
|         run: | |         run: | | ||||||
|           # Замените значения в файле с конфигурацией |           # Замените значения в файле с конфигурацией | ||||||
|           sed -i "s/version='[0-9]\+\.[0-9]\+\.[0-9]\+'/version='${{ env.VERSION }}'/g" /tmp/alr-default/alr-bin/alr.sh |           sed -i "s/version='[0-9]\+\.[0-9]\+\.[0-9]\+'/version='${{ env.VERSION }}'/g" alr-default/alr-bin/alr.sh | ||||||
|           sed -i "s/release='[0-9]\+'/release='1'/g" /tmp/alr-default/alr-bin/alr.sh |           sed -i "s/release='[0-9]\+'/release='1'/g" alr-default/alr-bin/alr.sh | ||||||
|  |  | ||||||
|       - name: Commit changes |       - name: Commit changes | ||||||
|         run: | |         run: | | ||||||
|           cd /tmp/alr-default |           cd alr-default | ||||||
|           git config user.name "gitea" |           git config user.name "gitea" | ||||||
|           git config user.email "admin@plemya-x.ru" |           git config user.email "admin@plemya-x.ru" | ||||||
|           git remote set-url origin https://gitea:${{ secrets.GITEAPUBLIC }}@gitea.plemya-x.ru/Plemya-x/alr-default.git |  | ||||||
|           git remote -v |  | ||||||
|           git add . |           git add . | ||||||
|           git commit -m "Обновление версии до ${{ env.VERSION }}" |           git commit -m "Обновление версии до ${{ env.VERSION }}" | ||||||
|           git push origin master |           git push | ||||||
|  |  | ||||||
|  |       - name: Install alr | ||||||
|  |         run: | | ||||||
|  |           make install | ||||||
|  |  | ||||||
|       - name: Build packages |       - name: Build packages | ||||||
|         run: | |         run: | | ||||||
|           SCRIPT_PATH=/tmp/alr-default/alr-bin/alr.sh |           SCRIPT_PATH=alr-default/alr-bin/alr.sh | ||||||
|           ALR_DISTRO=altlinux ALR_PKG_FORMAT=rpm alr build -s "$SCRIPT_PATH" |           ALR_DISTRO=altlinux ALR_PKG_FORMAT=rpm alr build -s "$SCRIPT_PATH" | ||||||
|           ALR_PKG_FORMAT=rpm alr build -s "$SCRIPT_PATH" |           ALR_PKG_FORMAT=rpm alr build -s "$SCRIPT_PATH" | ||||||
|           ALR_PKG_FORMAT=deb alr build -s "$SCRIPT_PATH" |           ALR_PKG_FORMAT=deb alr build -s "$SCRIPT_PATH" | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user