Skip to content

Commit

Permalink
cd: add publishing to universal static repo
Browse files Browse the repository at this point in the history
Because we are using a universal static repo for tarantool since 3.0
version, we need to publish `tt` to simular repo. It helps us avoid
a lot of problems with supporting OS and their versions.

Related tarantool/installer.sh#36
  • Loading branch information
foxzi authored and psergee committed Mar 5, 2024
1 parent 12ca140 commit 9833bba
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions magefile.publish.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ var targetDistros = []Distro{
{OS: "debian", Dist: "stretch"}, // 9
{OS: "debian", Dist: "buster"}, // 10
{OS: "debian", Dist: "bullseye"}, // 11

{OS: "linux-deb", Dist: "static"},
{OS: "linux-rpm", Dist: "static"},
}

// walkMatch walks through directory and collects file paths satisfying patterns.
Expand Down Expand Up @@ -70,11 +73,11 @@ func walkMatch(root string, patterns []string) ([]string, error) {
// getPatterns returns patterns to select goreleaser build artifacts.
func getPatterns(distro Distro) ([]string, error) {

if distro.OS == "el" || distro.OS == "fedora" {
return []string{"*.rpm", "*.noarch.rpm"}, nil
if distro.OS == "el" || distro.OS == "fedora" || distro.OS == "linux-rpm" {
return []string{"*.rpm"}, nil
}

if distro.OS == "ubuntu" || distro.OS == "debian" {
if distro.OS == "ubuntu" || distro.OS == "debian" || distro.OS == "linux-deb"{
return []string{"*.deb", "*.dsc"}, nil
}

Expand Down

0 comments on commit 9833bba

Please sign in to comment.