diff --git a/.github/file-filters.yml b/.github/file-filters.yml index bdcf0dcb7..dd0e64fcc 100644 --- a/.github/file-filters.yml +++ b/.github/file-filters.yml @@ -12,6 +12,7 @@ docker: &docker webapp: &webapp - '.github/workflows/test-webapp.yml' - 'webapp/**/*' + - 'styleguide/**/*' - 'package.json' docs-check: &docs-check diff --git a/.github/workflows/docker-push.yml b/.github/workflows/docker-push.yml index 970d886d0..5cc2ab260 100644 --- a/.github/workflows/docker-push.yml +++ b/.github/workflows/docker-push.yml @@ -24,27 +24,27 @@ jobs: file: backend/Dockerfile target: production - name: webapp-base - context: webapp + context: . file: webapp/Dockerfile target: base - name: webapp-build - context: webapp + context: . file: webapp/Dockerfile target: build - name: webapp - context: webapp + context: . file: webapp/Dockerfile target: production - name: maintenance-base - context: webapp + context: . file: webapp/Dockerfile.maintenance target: base - name: maintenance-build - context: webapp + context: . file: webapp/Dockerfile.maintenance target: build - name: maintenance - context: webapp + context: . file: webapp/Dockerfile.maintenance target: production runs-on: ubuntu-latest diff --git a/.github/workflows/test-webapp.yml b/.github/workflows/test-webapp.yml index 37b33cc1c..c22e0c406 100644 --- a/.github/workflows/test-webapp.yml +++ b/.github/workflows/test-webapp.yml @@ -46,7 +46,7 @@ jobs: - name: Webapp | Build 'test' image run: | - docker build --target test -t "ocelotsocialnetwork/webapp:test" webapp/ + docker build --target test -f webapp/Dockerfile -t "ocelotsocialnetwork/webapp:test" . docker save "ocelotsocialnetwork/webapp:test" > /tmp/webapp.tar - name: Cache docker image diff --git a/docker-compose.build.yml b/docker-compose.build.yml index 2f6e4c17b..3f8d68540 100644 --- a/docker-compose.build.yml +++ b/docker-compose.build.yml @@ -4,7 +4,7 @@ services: image: ghcr.io/ocelot-social-community/ocelot-social/webapp-build:${OCELOT_VERSION:-latest} build: target: build - context: webapp + context: . backend: image: ghcr.io/ocelot-social-community/ocelot-social/backend-build:${OCELOT_VERSION:-latest} @@ -16,5 +16,5 @@ services: image: ghcr.io/ocelot-social-community/ocelot-social/maintenance-build:${OCELOT_VERSION:-latest} build: target: build - context: webapp + context: . dockerfile: ./Dockerfile.maintenance diff --git a/docker-compose.yml b/docker-compose.yml index db3da4a5c..c632f0632 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -7,7 +7,8 @@ services: webapp: image: ghcr.io/ocelot-social-community/ocelot-social/webapp:${OCELOT_VERSION:-latest} build: - context: ./webapp + context: . + dockerfile: ./webapp/Dockerfile target: production depends_on: - backend @@ -50,8 +51,8 @@ services: maintenance: image: ghcr.io/ocelot-social-community/ocelot-social/maintenance:${OCELOT_VERSION:-latest} build: - context: ./webapp - dockerfile: Dockerfile.maintenance + context: . + dockerfile: ./webapp/Dockerfile.maintenance ports: - 3001:80 diff --git a/styleguide/.gitignore b/styleguide/.gitignore index 6f4c2d85c..ce5d36c60 100644 --- a/styleguide/.gitignore +++ b/styleguide/.gitignore @@ -1,6 +1,7 @@ .DS_Store node_modules docs +dist # local env files .env.local diff --git a/styleguide/package.json b/styleguide/package.json index 7c19c5f0b..8628bbea4 100644 --- a/styleguide/package.json +++ b/styleguide/package.json @@ -4,11 +4,11 @@ "private": false, "scripts": { "serve": "http-server ./docs -o -s", - "build": "cross-env NODE_OPTIONS=--openssl-legacy-provider yarn theo && vue-cli-service build --no-fix", + "build": "cross-env NODE_OPTIONS=--openssl-legacy-provider yarn theo && cross-env NODE_OPTIONS=--openssl-legacy-provider vue-cli-service build --no-fix", "lint": "vue-cli-service lint --no-fix-warning", "dev": "npm-run-all --parallel theo:onchange theo servedev", "servedev": "vue-cli-service serve --open --no-fix", - "build:lib": "yarn theo && cross-env BUILD=library vue-cli-service build --target lib --name system ./src/library.js --no-fix", + "build:lib": "cross-env NODE_OPTIONS=--openssl-legacy-provider yarn theo && cross-env BUILD=library NODE_OPTIONS=--openssl-legacy-provider vue-cli-service build --target lib --name system ./src/library.js --no-fix", "theo": "theo ./src/system/tokens/tokens.yml --transform web --format map.scss,scss,raw.json,json --dest ./src/system/tokens/generated", "theo:onchange": "onchange \"./src/system/tokens/*.yml\" -- npm run theo", "test": "echo 'TODO: FIX & ADD TESTING!'", diff --git a/styleguide/src/system/components/layout/Flex/Flex.vue b/styleguide/src/system/components/layout/Flex/Flex.vue index 629a0f466..dccc6319c 100644 --- a/styleguide/src/system/components/layout/Flex/Flex.vue +++ b/styleguide/src/system/components/layout/Flex/Flex.vue @@ -9,7 +9,7 @@