Skip to content

Commit

Permalink
cleanup docker build process
Browse files Browse the repository at this point in the history
  • Loading branch information
wernst committed Jun 17, 2024
1 parent 5f3045c commit dfebba7
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 17 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
needs: publish-npm
runs-on: ubuntu-latest
# TODO: only run if publish was made to @triplit/server
# if: needs.publish-npm.outputs.published == 'true'
if: needs.publish-npm.outputs.published == 'true'
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down
1 change: 0 additions & 1 deletion packages/node-server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
"version": "0.3.49",
"scripts": {
"start": "node ./run.js",
"build": "./scripts/build.sh",
"publish": "./scripts/publish.sh",
"check-and-publish": "node ./scripts/docker-check-version-and-publish.js"
},
Expand Down
9 changes: 0 additions & 9 deletions packages/node-server/scripts/build.sh

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,7 @@ async function publishIfNewVersion() {
) {
console.log('New version detected. Publishing...');
// working directory is package root
// Will publish too
execSync('yarn build', { stdio: 'inherit' });
// execSync('yarn publish', { stdio: 'inherit' });
execSync('yarn publish', { stdio: 'inherit' });
await recordImagePublish({
server_version: currentVersion,
db_version: dbPackageJson.version,
Expand Down
6 changes: 3 additions & 3 deletions packages/node-server/scripts/publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
# Extract the version
VERSION=$(node -p "require('./package.json').version")

# Push the tags to Docker Hub
docker push aspencloud/triplit-server:$VERSION
docker push aspencloud/triplit-server:latest
# Build and tag the Docker image
# Specify platforms: https://docs.docker.com/build/building/multi-platform/#building-multi-platform-images
docker buildx build -t aspencloud/triplit-server:$VERSION -t aspencloud/triplit-server:latest --platform linux/amd64,linux/arm64 --push .

0 comments on commit dfebba7

Please sign in to comment.