Skip to content

Commit

Permalink
Merge pull request #35 from feniln64/feature/forgetpassword
Browse files Browse the repository at this point in the history
test
  • Loading branch information
feniln64 committed May 4, 2024
2 parents b00a6aa + 0cd18e7 commit 0e89631
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 26 deletions.
58 changes: 35 additions & 23 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,36 +2,48 @@ name: build-and-deploy
on:
push:
branches: ['main', 'testing']

env:
REACT_APP_POSTHOG_API_TOKEN: ${{ secrets.REACT_APP_POSTHOG_API_TOKEN }}
REACT_APP_POSTHOG_HOST: ${{ secrets.REACT_APP_POSTHOG_HOST }}
jobs:
# docker-build-push:
# runs-on: ubuntu-latest
# steps:
# - name: Checkout repository
# uses: actions/checkout@v2
docker-build-push:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Set up QEMU
uses: docker/setup-qemu-action@v2
with:
platforms: 'arm64,arm'

# - name: Set up QEMU
# uses: docker/setup-qemu-action@v1

# - name: Set up Docker Buildx
# uses: docker/setup-buildx-action@v1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

# - name: Login to github docker registry
# uses: docker/login-action@v2
# with:
# registry: ghcr.io
# username: ${{ github.actor }}
# password: ${{ secrets.GITHUB_TOKEN }}
# uses: docker/login-action@v2
# with:
# registry: registry.gitlab.com
# username: ${{ secrets.GITLAB_REGISTRY_USERNAME }}
# password: ${{ secrets.GITLAB_REGISTRY_TOKEN }}
- name: Login to GitLb Container Registry
uses: docker/login-action@v2
with:
registry: registry.gitlab.com
username: ${{ secrets.GITLAB_REGISTRY_USERNAME }}
password: ${{ secrets.GITLAB_REGISTRY_TOKEN }}

- name: list files
run: ls -al

- name: Build and push
uses: docker/build-push-action@v2
with:
context: .
file: ./Dockerfile
push: true
tags: registry.gitlab.com/do-copypaste/copypaste_react:latest
# - name: build
# run: |
# docker buildx build -t ghcr.io/${{ github.repository_owner }}/copypaste_react:latest --push --platform=linux/arm64,linux/amd64 .
# docker build -t registry.gitlab.com/do-copypaste/copypaste_node:latest .
# docker push registry.gitlab.com/do-copypaste/copypaste_node:latest
# docker buildx build -t ghcr.io/${{ github.repository_owner }}/copypaste_react:latest --push --platform=linux/arm64,linux/amd64 .
# docker build -t registry.gitlab.com/do-copypaste/copypaste_node:latest .
# docker push registry.gitlab.com/do-copypaste/copypaste_node:latest
# - name: Set up QEM
# uses: docker/setup-qemu-action@v2

Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,5 @@ test/

npm-debug.log*
yarn-debug.log*
yarn-error.log*
yarn-error.log*
.env*
4 changes: 2 additions & 2 deletions src/api/postHog.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { PostHog } from 'posthog-node'

const client = new PostHog(
'phc_lZpmcwWp5TdXxmBAGiCfIyQLBVii6cnYN3msosyyyCC',
{ host: 'https://app.posthog.com' }
process.env.REACT_APP_POSTHOG_API_TOKEN,
{ host: process.env.REACT_APP_POSTHOG_URL }
)

const newEvent= (event, distinctId,url) => {
Expand Down

0 comments on commit 0e89631

Please sign in to comment.