Compare commits
13 Commits
d39e4775aa
...
hotfixes
| Author | SHA1 | Date | |
|---|---|---|---|
| e111d5be28 | |||
| c70d4a5f11 | |||
| ad5c271b05 | |||
| 19a588ac25 | |||
| ad524978df | |||
| 2ce78547b7 | |||
| 81a3fc0e03 | |||
| 2615961bf1 | |||
| fb967e3af3 | |||
| c283a34784 | |||
| a48c616ecc | |||
| cd1149a23a | |||
| 58c8ff56ba |
@@ -0,0 +1,27 @@
|
|||||||
|
name: "Build and push image"
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
deploy:
|
||||||
|
name: "Build Docker image"
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Login to Docker Hub
|
||||||
|
uses: docker/login-action@v3
|
||||||
|
with:
|
||||||
|
registry: registry.docker.polytech.djalim.fr
|
||||||
|
username: ${{ secrets.registry_login }}
|
||||||
|
password: ${{ secrets.registry_pass }}
|
||||||
|
|
||||||
|
- name: Set up Docker Buildx
|
||||||
|
uses: docker/setup-buildx-action@v3
|
||||||
|
|
||||||
|
- name: Build and push
|
||||||
|
uses: docker/build-push-action@v6
|
||||||
|
with:
|
||||||
|
push: true
|
||||||
|
tags: registry.docker.polytech.djalim.fr/polympr:latest
|
||||||
+1
-1
@@ -3,7 +3,7 @@ FROM denoland/deno:alpine
|
|||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
COPY . .
|
COPY . .
|
||||||
RUN deno cache main.ts --allow-import flag
|
RUN deno cache main.ts --allow-import
|
||||||
RUN deno task build
|
RUN deno task build
|
||||||
|
|
||||||
USER deno
|
USER deno
|
||||||
|
|||||||
@@ -0,0 +1,2 @@
|
|||||||
|
#Local mode, set to true to access admin pages with any users
|
||||||
|
LOCAL=false
|
||||||
+1
-1
@@ -2,7 +2,7 @@ import { defineConfig } from "$fresh/server.ts";
|
|||||||
import ensureDatabases from "$root/databases/ensure.ts";
|
import ensureDatabases from "$root/databases/ensure.ts";
|
||||||
import { load } from "@std/dotenv";
|
import { load } from "@std/dotenv";
|
||||||
|
|
||||||
await load({ envPath: "./.env.development.local", export: true });
|
await load({ envPath: "./.env", export: true });
|
||||||
await ensureDatabases();
|
await ensureDatabases();
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
server: {
|
server: {
|
||||||
|
|||||||
@@ -240,7 +240,7 @@ export default function EditMobility() {
|
|||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
))}
|
))}
|
||||||
<button onClick={handleSave} disabled={isSaving}>
|
<button type="button" onClick={handleSave} disabled={isSaving}>
|
||||||
{isSaving ? "Saving..." : "Confirm"}
|
{isSaving ? "Saving..." : "Confirm"}
|
||||||
</button>
|
</button>
|
||||||
</section>
|
</section>
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ export default function Promotion(props: PromotionProps) {
|
|||||||
<tbody>
|
<tbody>
|
||||||
{props.students
|
{props.students
|
||||||
.filter((student) => student.promotionId === props.promo.id)
|
.filter((student) => student.promotionId === props.promo.id)
|
||||||
.map((student) => <Student student={student} />)}
|
.map((student) => <Student key={student.id} student={student} />)}
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -104,7 +104,7 @@ export default function UploadStudents() {
|
|||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<input type="file" accept=".xlsx, .xls" onChange={handleFileChange} />
|
<input type="file" accept=".xlsx, .xls" onChange={handleFileChange} />
|
||||||
<button onClick={confirmUpload}>Confirm Upload</button>
|
<button type="button" onClick={confirmUpload}>Confirm Upload</button>
|
||||||
<p>{statusMessage.value}</p>
|
<p>{statusMessage.value}</p>
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user