Skip to content

Commit

Permalink
chore: move buildkite folder + fix publish (#8531)
Browse files Browse the repository at this point in the history
* chore: move buildkite folder

* remove src from buildkite config

* chore: fix publish
  • Loading branch information
Jolg42 committed Aug 2, 2021
1 parent 0d0dc83 commit d9d1649
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 10 deletions.
Expand Up @@ -25,7 +25,7 @@ echo $BUILDKITE_SOURCE
echo $UPDATE_STUDIO

if [ $CHANGED_COUNT -gt 0 ] || [ $BUILDKITE_TAG ] || [ $BUILDKITE_SOURCE == "trigger_job" ] || [ $UPDATE_STUDIO ]; then
buildkite-agent pipeline upload src/.buildkite/publish/publish.yml
buildkite-agent pipeline upload .buildkite/publish/publish.yml
else
echo "Nothing changed"
fi
Expand Up @@ -3,9 +3,9 @@ services:
app:
image: node:12-buster
volumes:
- ../../../:/app
- ../../:/app
working_dir: /app
command: /app/src/.buildkite/publish/run.sh
command: /app/.buildkite/publish/run.sh
environment:
# PostgreSQL
- TEST_POSTGRES_URI_MIGRATE=postgres://prisma:prisma@postgres:5432/tests-migrate
Expand Down
Expand Up @@ -3,6 +3,6 @@ steps:
timeout_in_minutes: 45
plugins:
- docker-compose#v3.8.0:
config: src/.buildkite/publish/docker-compose.yml
config: .buildkite/publish/docker-compose.yml
run: app
- wait
File renamed without changes.
Expand Up @@ -23,7 +23,7 @@ echo $BUILDKITE_TAG
echo $CHANGED_COUNT

if [ $CHANGED_COUNT -gt 0 ]; then
buildkite-agent pipeline upload src/.buildkite/test/test.yml
buildkite-agent pipeline upload .buildkite/test/test.yml
else
echo "Nothing changed"
fi
Expand Down
Expand Up @@ -3,9 +3,9 @@ services:
app:
image: node:14-buster
volumes:
- ../../../:/app
- ../../:/app
working_dir: /app
command: /app/src/.buildkite/test/run.sh
command: /app/.buildkite/test/run.sh
environment:
# PostgreSQL
- TEST_POSTGRES_URI_MIGRATE=postgres://prisma:prisma@postgres:5432/tests-migrate
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion src/.buildkite/test/test.yml → .buildkite/test/test.yml
Expand Up @@ -4,7 +4,7 @@ steps:
timeout_in_minutes: 25
plugins:
- docker-compose#v3.8.0:
config: src/.buildkite/test/docker-compose.14.yml
config: .buildkite/test/docker-compose.14.yml
run: app

- wait
4 changes: 2 additions & 2 deletions scripts/ci/publish.ts
Expand Up @@ -515,15 +515,15 @@ async function getNextMinorStable() {
}

// TODO: Adjust this for stable release
function getMinorFromPatchBranch(version: string) {
function getMinorFromPatchBranch(version: string): number | null {
const regex = /2\.(\d+)\.x/
const match = regex.exec(version)

if (match) {
return Number(match[1])
}

return undefined
return null
}

async function publish() {
Expand Down

0 comments on commit d9d1649

Please sign in to comment.