Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…avn-frontend- into develop
  • Loading branch information
taku10101 committed Jan 6, 2024
2 parents 37818af + 6a73322 commit 19cd28e
Show file tree
Hide file tree
Showing 41 changed files with 3,702 additions and 170 deletions.
7 changes: 7 additions & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
VITE_FIREBASE_API_KEY=AIzaSyC0YuZym1rPtz65BADS4Q64cJZwav__VMM
VITE_FIREBASE_AUTH_DOMAIN=geek-nagoyacaravan.firebaseapp.com
VITE_FIREBASE_PROJECT_ID=geek-nagoyacaravan
VITE_FIREBASE_STORAGE_BUCKET=geek-nagoyacaravan.appspot.com
VITE_FIREBASE_MESSAGING_SENDER_ID=147326111447
VITE_FIREBASE_APP_ID=1:147326111447:web:de5680dd4e21f09c3d2a92
VITE_FIREBASE_MEASUREMENT_ID=G-XLHRT6SZ6T
33 changes: 33 additions & 0 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: edit manifest

on:
push:
branches:
- develop
- feature/#5

jobs:
build:
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
steps:
- name: checkout manifest repository
uses: actions/checkout@v3
with:
repository: nagoya-caravan/hazakura-k8s
ref: main
token: ${{ secrets.GIT_TOKEN }}

- name: edit manifest
run: |
yq -i '.spec.template.spec.initContainers[1].env[0].value = "${{ github.sha }}"' ./frontend/frontend.yml
- name: push
run: |
git config user.name githubActions
git config user.email [email protected]
git add .
git commit --author=. -m "update src"
git push
18 changes: 18 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: vitest

on: [push]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: setup node
uses: actions/setup-node@v3
with:
node-version: '20.x'
- run: npm ci
- run: npm run build
- run: npm test
9 changes: 8 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
@@ -1,9 +1,16 @@
<!doctype html>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=M+PLUS+1p:wght@300&display=swap"
rel="stylesheet"
/>

<title>Vite + React</title>
</head>
<body>
Expand Down
Loading

0 comments on commit 19cd28e

Please sign in to comment.