Skip to content

Commit 9d207f1

Browse files
authored
Merge pull request #4 from ju5t/main
fix: make sure rpm builds work
2 parents 2418caf + 0ba3bb9 commit 9d207f1

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

.github/workflows/deploy.yml

+10-4
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ name: CI
22

33
on:
44
push:
5+
branches:
6+
- main
57
tags:
68
- v*
79

@@ -12,13 +14,15 @@ jobs:
1214
- uses: actions/checkout@v2
1315
- name: Permissions
1416
run: chmod 777 -R .
15-
- uses: ju5t/[email protected]
16-
with:
17-
image: sensson/rpmbuild:rockylinux-8
18-
options: -v ${{ github.workspace }}:/srv -e RELEASE=${{ github.ref }}
17+
- name: Version
18+
run: sed -i "s/##version##/${GITHUB_REF_NAME#v}/g" rpmbuild/SPECS/acronis-mysql-scripts.spec
19+
- name: Build
20+
run: docker run -v ${{ github.workspace }}:/srv -e RELEASE= sensson/rpmbuild:rockylinux-8
1921
- name: Dependencies
22+
if: startsWith(github.ref, 'refs/tags/')
2023
run: pip install --user cloudsmith-cli
2124
- name: Deploy
25+
if: startsWith(github.ref, 'refs/tags/')
2226
run: bash deploy-rpm.sh
2327
env:
2428
APIKEY: ${{ secrets.APIKEY }}
@@ -44,8 +48,10 @@ jobs:
4448
arch: 'amd64'
4549
desc: 'Backups scripts to be used by Acronis to make backups of MySQL.'
4650
- name: Dependencies
51+
if: startsWith(github.ref, 'refs/tags/')
4752
run: pip install --user cloudsmith-cli
4853
- name: Deploy
54+
if: startsWith(github.ref, 'refs/tags/')
4955
run: bash deploy-deb.sh
5056
env:
5157
APIKEY: ${{ secrets.APIKEY }}

rpmbuild/SPECS/acronis-mysql-scripts.spec

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Name: acronis-mysql-scripts
2-
Version: %{version}
2+
Version: ##version##
33
Release: 1
44
License: MIT
55
Summary: MySQL backup scripts for Acronis

0 commit comments

Comments
 (0)