Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding nfpm package creations for deb and rpm for v17 #3

Merged
merged 6 commits into from
Oct 24, 2024
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
24 changes: 24 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,27 @@ jobs:
run: |
make install
PGUSER=postgres make installcheck

nfpm:
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main'
needs: installcheck
steps:
- name: Check out the repository to the runner
uses: actions/checkout@v4
- name: Create restore_points DEB 17 Package
uses: docker://goreleaser/nfpm:latest
with:
args: package --config=./nfpm/17/deb.yaml --target ./restore_points_17_1.5_amd64.deb
- name: Create restore_points RPM 17 Package
uses: docker://goreleaser/nfpm:latest
with:
args: package --config=./nfpm/17/rpm.yaml --target ./restore_points_17_1.5.x86_64.rpm
- name: Archive Prometheus Package
uses: actions/upload-artifact@v3
with:
name: packages
path: |
*_amd64.deb
*.x86_64.rpm
retention-days: 30 # Conserve les artefacts pendant 30 jours
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
results/
regression.diffs
regression.out
regression.out
.vagrant/
*.deb
*.rpm
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
Voici la traduction en anglais :

# restore_points

## Description
Expand Down Expand Up @@ -88,8 +86,9 @@ Here is the "Contributors" section translated to English:

- [Robin Portigliatti](https://www.linkedin.com/in/robin-portigliatti-464838a7/) ;
- [Guillaume Armede](https://www.linkedin.com/in/guillaume-armede-811304147/) ;
- [Franck Boudehen](https://www.linkedin.com/in/franck-boudehen-35754b65) ;
- [Guillaume Lelarge](https://github.com/gleu).
- [Guillaume Lelarge](https://github.com/gleu) ;
- [Alexandre Pereira](https://www.linkedin.com/in/alexpereira-5/) ;
- [Franck Boudehen](https://www.linkedin.com/in/franck-boudehen-35754b65).


### Instructions
Expand Down
42 changes: 42 additions & 0 deletions Vagrantfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
Vagrant.configure("2") do |config|

# Configuration pour la VM Debian
config.vm.define "debian" do |debian|
debian.vm.box = "generic/debian12" # Utilise Debian 11 Bullseye
debian.vm.hostname = "debian-vm"
debian.vm.network "private_network", type: "dhcp"
debian.vm.provider "virtualbox" do |vb|
vb.memory = "1024"
vb.cpus = 2
end

# Partage NFS de ./ vers /app
debian.vm.synced_folder "./", "/app", type: "nfs", nfs_version: 4, nfs_udp: false

debian.vm.provision "shell", inline: <<-SHELL
apt update
apt install -y build-essential
SHELL
end

# Configuration pour la VM Rocky Linux 9
config.vm.define "rocky9" do |rocky|
rocky.vm.box = "generic/rocky9" # Utilise Rocky Linux 9
rocky.vm.hostname = "rocky-vm"
rocky.vm.network "private_network", type: "dhcp"
rocky.vm.provider "virtualbox" do |vb|
vb.memory = "1024"
vb.cpus = 2
end

# Partage NFS de ./ vers /app
rocky.vm.synced_folder "./", "/app", type: "nfs", nfs_version: 4, nfs_udp: false

rocky.vm.provision "shell", inline: <<-SHELL
dnf update -y
dnf groupinstall -y "Development Tools"
SHELL
end

end

30 changes: 30 additions & 0 deletions nfpm/17/deb.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# nfpm example configuration file
#
# check https://nfpm.goreleaser.com/configuration for detailed usage
#
name: "restore_points_17"
arch: "amd64"
platform: "linux"
version: "v1.5"
section: "database"
priority: "optional"
provides:
- restore_points_17
maintainer: "Robin Portigliatti <[email protected]>"
description: |
`restore_points` is a PostgreSQL extension that allows managing restore points in a PostgreSQL instance. It creates a schema, table, sequence, and function to facilitate the management and tracking of restore points.
homepage: "https://dalibo.com/"
license: "Apache License 2.0"
contents:
- src: ./restore_points--1.5.sql
dst: /usr/share/postgresql/17/extension/restore_points--1.5.sql
file_info:
mode: 0644
owner: postgres
group: postgres
- src: ./restore_points.control
dst: /usr/share/postgresql/17/extension/restore_points.control
file_info:
mode: 0644
owner: postgres
group: postgres
30 changes: 30 additions & 0 deletions nfpm/17/rpm.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# nfpm example configuration file
#
# check https://nfpm.goreleaser.com/configuration for detailed usage
#
name: "restore_points_17"
arch: "amd64"
platform: "linux"
version: "v1.5"
section: "database"
priority: "optional"
provides:
- restore_points_17
maintainer: "Robin Portigliatti <[email protected]>"
description: |
`restore_points` is a PostgreSQL extension that allows managing restore points in a PostgreSQL instance. It creates a schema, table, sequence, and function to facilitate the management and tracking of restore points.
homepage: "https://dalibo.com/"
license: "Apache License 2.0"
contents:
- src: ./restore_points--1.5.sql
dst: /usr/pgsql-17/share/extension/restore_points--1.5.sql
file_info:
mode: 0644
owner: postgres
group: postgres
- src: ./restore_points.control
dst: /usr/pgsql-17/share/extension/restore_points.control
file_info:
mode: 0644
owner: postgres
group: postgres
Loading