From 49de1ce0bf902e0c65c884fbfb9bcb8428a3b08a Mon Sep 17 00:00:00 2001 From: Max Isom Date: Wed, 5 Jan 2022 14:47:02 -0600 Subject: [PATCH] Release 0.3.0 --- .github/workflows/publish.yml | 2 +- CHANGELOG.md | 5 ++++- Dockerfile | 10 ++++++---- package.json | 8 ++++---- 4 files changed, 15 insertions(+), 10 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 66e305e..71a3c73 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -78,7 +78,7 @@ jobs: with: push: true tags: ${{ steps.get-tags.outputs.tag }} - platforms: linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64 + platforms: linux/amd64,linux/arm64 cache-from: type=local,src=/tmp/.buildx-cache cache-to: type=local,dest=/tmp/.buildx-cache,mode=max diff --git a/CHANGELOG.md b/CHANGELOG.md index cf966a6..ded5e45 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ## [Unreleased] + +## [0.3.0] - 2022-01-05 ### Changed - Migrated from Sequelize to Prisma. (#456) - Bumped dependencies @@ -25,7 +27,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Added - Initial release -[Unreleased]: https://github.com/codetheweb/muse/compare/v0.2.1...HEAD +[Unreleased]: https://github.com/codetheweb/muse/compare/v0.3.0...HEAD +[0.3.0]: https://github.com/codetheweb/muse/compare/v0.2.1...v0.3.0 [0.2.1]: https://github.com/codetheweb/muse/compare/v0.2.0...v0.2.1 [0.2.0]: https://github.com/codetheweb/muse/releases/tag/v0.2.0 [0.1.1]: https://github.com/codetheweb/muse/releases/tag/v0.1.1 diff --git a/Dockerfile b/Dockerfile index b58556a..7e080f8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,9 @@ -FROM node:16.13.0-alpine AS base +FROM node:16.13.0 AS base -# Install ffmpeg and build dependencies -RUN apk add --no-cache ffmpeg python2 make g++ +# Install ffmpeg +RUN apt-get update && \ + apt-get install -y ffmpeg && \ + rm -rf /var/lib/apt/lists/* WORKDIR /usr/app @@ -22,7 +24,7 @@ FROM dependencies AS builder COPY . . -RUN yarn build +RUN yarn prisma generate && yarn build # Only copy essentials FROM base AS prod diff --git a/package.json b/package.json index cc0bf7e..e4fb116 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "muse", - "version": "0.2.1", + "version": "0.3.0", "description": "🎧 a self-hosted Discord music bot that doesn't suck ", "exports": "./dist/src/index.js", "repository": "git@github.com:codetheweb/muse.git", @@ -26,9 +26,9 @@ "prepack": "npm run clean && npm run build", "start": "npm run env:set-database-url -- node --experimental-json-modules dist/src/scripts/migrate-and-start.js", "dev": "concurrently nodemon 'tsc --watch'", - "migrations:generate": "npm run prisma migrate dev", - "migrations:run": "npm run prisma migrate deploy", - "prisma": "npm run env:set-database-url prisma", + "migrations:generate": "npm run prisma:with-env migrate dev", + "migrations:run": "npm run prisma:with-env migrate deploy", + "prisma:with-env": "npm run env:set-database-url prisma", "env:set-database-url": "node dist/src/scripts/run-with-database-url.js", "release": "release-it" },