chore: add support for ubuntu 24.04 #23
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: | |
- main | |
tags: | |
- v* | |
jobs: | |
build-rpm: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Permissions | |
run: chmod 777 -R . | |
- 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 }} | |
build-deb: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Script | |
run: | | |
mkdir -p .debpkg/var/lib/Acronis/ | |
cp mysqlbackup.sh .debpkg/var/lib/Acronis/ | |
cp mysqlfreeze.sh .debpkg/var/lib/Acronis/ | |
cp mysqlthaw.sh .debpkg/var/lib/Acronis/ | |
cp mysql.conf .debpkg/var/lib/Acronis/ | |
cp functions.sh .debpkg/var/lib/Acronis/ | |
chmod +x .debpkg/var/lib/Acronis/*.sh | |
# Config | |
mkdir -p .debpkg/DEBIAN | |
touch .debpkg/DEBIAN/conffiles | |
echo '/var/lib/Acronis/mysql.conf' >> .debpkg/DEBIAN/conffiles | |
- uses: jiro4989/build-deb-action@v3 | |
with: | |
package: acronis-mysql-scripts | |
package_root: .debpkg | |
maintainer: Sensson | |
version: ${{ github.ref }} # refs/tags/v*.*.* | |
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 }} |