Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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/docker-run-action@v0.0.3
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