diff --git a/.github/workflows/build-docker-image.yml b/.github/workflows/build-docker-image.yml index e56ae14..70a3638 100644 --- a/.github/workflows/build-docker-image.yml +++ b/.github/workflows/build-docker-image.yml @@ -18,9 +18,9 @@ on: secrets: DOCKERHUB_USERNAME: - required: true + required: false DOCKERHUB_TOKEN: - required: true + required: false jobs: build-and-push: @@ -42,6 +42,7 @@ jobs: type=semver,pattern={{version}} - name: Login to Docker Hub + if: always() uses: docker/login-action@v1 with: username: ${{ secrets.DOCKERHUB_USERNAME }} @@ -53,5 +54,5 @@ jobs: context: . file: ${{ inputs.dockerfilePath }} target: ${{ inputs.target }} - push: true + push: ${{ secrets.DOCKERHUB_USERNAME != '' }} tags: ${{ steps.meta.outputs.tags }} diff --git a/.github/workflows/ci-checks.yml b/.github/workflows/ci-checks.yml index 09bdc15..82f5cd8 100644 --- a/.github/workflows/ci-checks.yml +++ b/.github/workflows/ci-checks.yml @@ -2,15 +2,6 @@ name: CI Checks on: workflow_call: - secrets: - GOOGLE_CLIENT_ID: - required: true - GOOGLE_CLIENT_SECRET: - required: true - GH_CLIENT_ID: - required: true - GH_CLIENT_SECRET: - required: true jobs: ci: diff --git a/.github/workflows/production.yml b/.github/workflows/production.yml index 394004e..9768d1e 100644 --- a/.github/workflows/production.yml +++ b/.github/workflows/production.yml @@ -12,7 +12,6 @@ concurrency: jobs: ci-checks: uses: ./.github/workflows/ci-checks.yml - secrets: inherit build: needs: ci-checks diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index 7adbef8..b19da93 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -10,7 +10,6 @@ concurrency: jobs: ci-checks: uses: ./.github/workflows/ci-checks.yml - secrets: inherit build: uses: ./.github/workflows/build.yml diff --git a/.github/workflows/staging.yml b/.github/workflows/staging.yml index e65c376..c2b5818 100644 --- a/.github/workflows/staging.yml +++ b/.github/workflows/staging.yml @@ -12,7 +12,6 @@ concurrency: jobs: ci-checks: uses: ./.github/workflows/ci-checks.yml - secrets: inherit build: needs: ci-checks diff --git a/README.md b/README.md index ef124a4..32114ca 100644 --- a/README.md +++ b/README.md @@ -121,12 +121,6 @@ You can edit the files on your host, and the changes will be reflected in the co Copy `.env.sample` to `.env` and customize it for your needs. -Build the whole project for the first time: - - yarn build - -This will build the typescript for each package and the server. - Run dev server (frontend, backend): yarn dev @@ -191,3 +185,7 @@ You can copy from `.env.sample` **YOU MUST CHANGE THE SECRET_KEY** in `.env` file. SECRET_KEY=your-secret-key + +You can generate a random key by running + + yarn setup diff --git a/package.json b/package.json index 82db4ac..f7b812a 100644 --- a/package.json +++ b/package.json @@ -16,7 +16,6 @@ "build": "yarn workspace server build && yarn workspace app build && yarn workspace analytics build", "dev": "concurrently -n \"App,Server\" -c \"bgBlue.bold,bgGreen.bold\" \"yarn workspace app dev\" \"yarn workspace server dev\"", "server": "yarn workspace server dev", - "cli": "yarn workspace client start", "lint": "eslint .", "format": "prettier --ignore-path .prettierignore --write app server", "test": "yarn node --experimental-vm-modules --no-warnings $(yarn bin jest)",