Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hotfix/reponames #161

Merged
merged 25 commits into from
Sep 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
cf4b216
build(deps): bump @types/jest from 29.5.3 to 29.5.12
dependabot[bot] Apr 15, 2024
28fb02f
feature(improve-ux): Add scroll to top
Z-100 Apr 15, 2024
13385d3
feature(improve-ux): Improve usability of navbar
Z-100 Apr 15, 2024
c0eb1de
feature(hotfix): Change analytics
Z-100 Apr 15, 2024
845caff
build(deps): bump @types/node from 20.12.5 to 20.12.8
dependabot[bot] May 6, 2024
03701e2
build(deps): bump @vercel/postgres from 0.7.2 to 0.8.0
dependabot[bot] Apr 15, 2024
f5299dd
build(deps): bump react-icons from 4.10.1 to 5.2.0
dependabot[bot] May 6, 2024
3d7f5d7
build(deps): bump typescript from 4.9.5 to 5.4.5
dependabot[bot] Apr 15, 2024
3bae965
build(deps): bump ejs from 3.1.9 to 3.1.10
dependabot[bot] May 2, 2024
32449bf
feature(dependencies): Upgrade dependencies
Z-100 May 10, 2024
b76cb93
Merge pull request #116 from Z-100/dependencies
Z-100 May 10, 2024
1f03a65
build(deps-dev): bump postcss-cli from 10.1.0 to 11.0.0
dependabot[bot] May 13, 2024
bdea01c
build(deps): bump @testing-library/react from 14.3.1 to 16.0.0
dependabot[bot] Jun 10, 2024
57e3230
build(deps): bump @testing-library/jest-dom from 5.17.0 to 6.4.6
dependabot[bot] Jun 17, 2024
12b5ebd
build(deps): bump web-vitals from 3.5.2 to 4.1.1
dependabot[bot] Jun 17, 2024
ba45a65
feature(prepare-for-k8s): Add dockerfile + ignore
Z-100 Jun 21, 2024
72cb589
Merge remote-tracking branch 'origin/dependabot/npm_and_yarn/develop/…
Z-100 Jun 21, 2024
b5fcf30
Merge remote-tracking branch 'origin/dependabot/npm_and_yarn/develop/…
Z-100 Jun 21, 2024
7428730
Merge remote-tracking branch 'origin/dependabot/npm_and_yarn/develop/…
Z-100 Jun 21, 2024
ac1dc01
feature(dependencies): Update dependencies
Z-100 Jun 21, 2024
ed7d2ab
Merge branch 'dependencies' into prepare-for-k8s
Z-100 Jun 21, 2024
f3877c6
Merge pull request #126 from Z-100/dependencies
Z-100 Jun 21, 2024
79c61e0
Merge pull request #127 from Z-100/prepare-for-k8s
Z-100 Jun 21, 2024
bf5bb5c
Add workflows
Z-100 Jun 22, 2024
83b23d1
Fix repo names
Z-100 Sep 27, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
node_modules
build
.dockerignore
Dockerfile
36 changes: 36 additions & 0 deletions .github/workflows/push-dev-version-to-hub.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Build and push latest dev version to dockerhub

on:
push:
branches: [ "develop" ]
workflow_dispatch:

env:
DH_USER: ""
DH_PASS: ""

jobs:
build-images:

permissions:
contents: read
id-token: write

runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Build images
run: |
echo "Building images"
docker build -t z100/vayan:latest .

- name: Push images
run: |
echo "Login to dockerhub"
docker login -u ${{ secrets.DH_USER }} -p ${{ secrets.DH_PASS }}

echo "Pushing images"
docker push z100/vayan:latest
40 changes: 40 additions & 0 deletions .github/workflows/push-prod-version-to-hub.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Build and push new version to dockerhub

on:
push:
branches: [ "main" ]
workflow_dispatch:

env:
DH_USER: ""
DH_PASS: ""

jobs:
build-images:

permissions:
contents: read
id-token: write

runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Get commit SHA
run: |
echo "COMMIT_SHA_SHORT=$(echo ${{ github.sha }} | cut -c1-7)" >> $GITHUB_ENV

- name: Build images
run: |
echo "Building images"
docker build -t z100/vayan:${{ env.COMMIT_SHA_SHORT }} .

- name: Push images
run: |
echo "Login to dockerhub"
docker login -u ${{ secrets.DH_USER }} -p ${{ secrets.DH_PASS }}

echo "Pushing images"
docker push z100/vayan:${{ env.COMMIT_SHA_SHORT }}
15 changes: 15 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
FROM node:20-alpine

WORKDIR /app

ENV PATH /app/node_modules/.bin:$PATH

COPY package.json package-lock.json ./

RUN npm ci --silent && npm i -g serve --silent

COPY . .

RUN npm run build

CMD ["serve", "-s", "build"]
Loading
Loading