Skip to content

Commit

Permalink
fix: releases (formancehq#1488)
Browse files Browse the repository at this point in the history
  • Loading branch information
gfyrag authored May 13, 2024
1 parent 2bae359 commit 7b92579
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions .github/actions/find-directory/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ function findDockerFile(dir) {
results = results.concat(findDockerFile(file));
} else {
if (path.basename(file) === ".goreleaser.yml") {
const obj = { component: path.basename(path.dirname(file)), type: path.basename(path.dirname(path.dirname(file))) };
results.push(obj);
results.push(path.relative(".", path.dirname(file)));
}
}
});
Expand All @@ -22,6 +21,5 @@ function findDockerFile(dir) {

const dataComponents = findDockerFile("./components");
const dataEe = findDockerFile("./ee");
const dataTools = findDockerFile("./tools");
const data = dataComponents.concat(dataEe).concat(dataTools);
const data = dataComponents.concat(dataEe);
console.log(JSON.stringify(data, null, 0));
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ jobs:
--secret FURY_TOKEN=$FURY_TOKEN
--secret GORELEASER_KEY=$GORELEASER_KEY
${{ contains(github.event.pull_request.labels.*.name, 'no-cache') && '--no-cache' || '' }}
+goreleaser --type=${{ matrix.components.type }} --components=${{ matrix.components.component }} --mode=ci
+goreleaser --path=${{ matrix.components }} --mode=ci
env:
GITHUB_TOKEN: ${{ secrets.NUMARY_GITHUB_TOKEN }}
SPEAKEASY_API_KEY: ${{ secrets.SPEAKEASY_API_KEY }}
Expand Down

0 comments on commit 7b92579

Please sign in to comment.