Skip to content

Commit

Permalink
Merge pull request #14 from mslfh/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
mslfh authored Sep 11, 2024
2 parents 71760de + 2498a4b commit 352cded
Show file tree
Hide file tree
Showing 25 changed files with 2,454 additions and 880 deletions.
17 changes: 17 additions & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
DATABASE_URL=mysql://root:adminjs@localhost:3306/adminjs
DATABASE_DIALECT=mysql
DATABASE_NAME=adminjs
DATABASE_HOST=localhost
DATABASE_USER=root
DATABASE_PASSWORD=adminjs
COOKIE_SECRET=QmutO5X71dgE4p8GiU57YAxMCb6f6vm9
SESSION_SECRET=6f8e023b1f1a4b32a915aa7f6725f3d1
PORT=5000
ORIGIN=https://localhost:5000
RP_NAME=exertime_application
RP_ID=localhost
TIMEOUT_MS=60000
COOKIE_MAX_AGE=86400000 # 1 day in milliseconds
JWT_SECRET=9a0b0cc4b03b47c9a1c8c16f7a0569a6
JWT_EXPIRATION=1h
FRONTEND_ORIGIN=https://localhost:9000
42 changes: 0 additions & 42 deletions .github/workflow/docker-publish.yml

This file was deleted.

42 changes: 42 additions & 0 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Build and Push Docker Image

on:
push:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest

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

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

- name: Log in to Docker Hub
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Extract version number
id: vars
run: echo "VERSION=$(git describe --tags --always)" >> $GITHUB_ENV

- name: Save state
run: echo "VERSION=$(git describe --tags --always)" >> $GITHUB_STATE

- name: Set output
run: echo "version=$(git describe --tags --always)" >> $GITHUB_OUTPUT

- name: Build and push Docker image
uses: docker/build-push-action@v2
with:
context: .
file: ./Dockerfile
push: true
tags: ghcr.io/${{ github.repository }}/exertime-image:latest
Loading

0 comments on commit 352cded

Please sign in to comment.