Skip to content

Commit

Permalink
Merge pull request #4 from ju5t/main
Browse files Browse the repository at this point in the history
fix: make sure rpm builds work
  • Loading branch information
ju5t authored Aug 26, 2023
2 parents 2418caf + 0ba3bb9 commit 9d207f1
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ name: CI

on:
push:
branches:
- main
tags:
- v*

Expand All @@ -12,13 +14,15 @@ jobs:
- uses: actions/checkout@v2
- name: Permissions
run: chmod 777 -R .
- uses: ju5t/[email protected]
with:
image: sensson/rpmbuild:rockylinux-8
options: -v ${{ github.workspace }}:/srv -e RELEASE=${{ github.ref }}
- name: Version
run: sed -i "s/##version##/${GITHUB_REF_NAME#v}/g" rpmbuild/SPECS/acronis-mysql-scripts.spec
- name: Build
run: docker run -v ${{ github.workspace }}:/srv -e RELEASE= sensson/rpmbuild:rockylinux-8
- name: Dependencies
if: startsWith(github.ref, 'refs/tags/')
run: pip install --user cloudsmith-cli
- name: Deploy
if: startsWith(github.ref, 'refs/tags/')
run: bash deploy-rpm.sh
env:
APIKEY: ${{ secrets.APIKEY }}
Expand All @@ -44,8 +48,10 @@ jobs:
arch: 'amd64'
desc: 'Backups scripts to be used by Acronis to make backups of MySQL.'
- name: Dependencies
if: startsWith(github.ref, 'refs/tags/')
run: pip install --user cloudsmith-cli
- name: Deploy
if: startsWith(github.ref, 'refs/tags/')
run: bash deploy-deb.sh
env:
APIKEY: ${{ secrets.APIKEY }}
Expand Down
2 changes: 1 addition & 1 deletion rpmbuild/SPECS/acronis-mysql-scripts.spec
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Name: acronis-mysql-scripts
Version: %{version}
Version: ##version##
Release: 1
License: MIT
Summary: MySQL backup scripts for Acronis
Expand Down

0 comments on commit 9d207f1

Please sign in to comment.