Skip to content

Commit

Permalink
feat: added build of docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
torbrenner committed Sep 6, 2024
1 parent 786f037 commit 49e792a
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 94 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/docker-develop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches:
- develop
- feat/docker-deploy
pull_request:
branches:
- develop
Expand All @@ -20,7 +21,7 @@ jobs:
# Visit: https://github.com/samply/github-workflows/blob/main/.github/workflows/docker-ci.yml, for more information
uses: samply/github-workflows/.github/workflows/docker-ci.yml@main
with:
image-name: "samply/lens"
image-name: "samply/bbmri-sample-locator"
build-args: |
TARGET_ENVIRONMENT=staging
build-platforms: "linux/amd64"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
# Visit: https://github.com/samply/github-workflows/blob/main/.github/workflows/docker-ci.yml, for more information
uses: samply/github-workflows/.github/workflows/docker-ci.yml@main
with:
image-name: "samply/lens"
image-name: "samply/bbmri-sample-locator"
build-args: |
TARGET_ENVIRONMENT=production
build-platforms: "linux/amd64"
Expand Down
67 changes: 0 additions & 67 deletions .github/workflows/release.yml

This file was deleted.

1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,4 @@ vite.config.js.timestamp-*
.test-tmp
symlink-from
.idea/
build
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ COPY ./static ./static
RUN VITE_TARGET_ENVIRONMENT=${TARGET_ENVIRONMENT} npm run build

EXPOSE 3000
CMD ["node", "build"]
CMD ["node", "build"]
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"@commitlint/config-conventional": "^19.1.0",
"@playwright/test": "^1.28.1",
"@sveltejs/adapter-auto": "^3.0.0",
"@sveltejs/adapter-node": "^5.2.2",
"@sveltejs/kit": "^2.0.0",
"@sveltejs/vite-plugin-svelte": "^3.0.0",
"@types/eslint": "^8.56.0",
Expand Down
41 changes: 17 additions & 24 deletions svelte.config.js
Original file line number Diff line number Diff line change
@@ -1,26 +1,19 @@
// import adapter from '@sveltejs/adapter-auto';
// import { vitePreprocess } from '@sveltejs/vite-plugin-svelte';
//
// /** @type {import('@sveltejs/kit').Config} */
// const config = {
// // Consult https://kit.svelte.dev/docs/integrations#preprocessors
// // for more information about preprocessors
// preprocess: vitePreprocess(),
//
// kit: {
// // adapter-auto only supports some environments, see https://kit.svelte.dev/docs/adapter-auto for a list.
// // If your environment is not supported or you settled on a specific environment, switch out the adapter.
// // See https://kit.svelte.dev/docs/adapters for more information about adapters.
// adapter: adapter()
// }
// };
//
// export default config;
import adapter from '@sveltejs/adapter-node';
import { vitePreprocess } from '@sveltejs/vite-plugin-svelte';

import sveltePreprocess from 'svelte-preprocess';

export default {
// Consult https://github.com/sveltejs/svelte-preprocess
// for more information about preprocessors
preprocess: sveltePreprocess()
/** @type {import('@sveltejs/kit').Config} */
const config = {
// Consult https://kit.svelte.dev/docs/integrations#preprocessors
// for more information about preprocessors
preprocess: vitePreprocess(),
//
kit: {
// adapter-auto only supports some environments, see https://kit.svelte.dev/docs/adapter-auto for a list.
// If your environment is not supported or you settled on a specific environment, switch out the adapter.
// See https://kit.svelte.dev/docs/adapters for more information about adapters.
adapter: adapter()
}
};

export default config;

0 comments on commit 49e792a

Please sign in to comment.