Skip to content

Commit

Permalink
build(app): directory refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
Przemysław Szymański committed May 6, 2024
1 parent 16418c7 commit 2b300bf
Show file tree
Hide file tree
Showing 87 changed files with 35 additions and 16 deletions.
2 changes: 1 addition & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
version: 2
updates:
- package-ecosystem: "npm"
directory: "/"
directory: "/app"
schedule:
interval: "weekly"
9 changes: 6 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,14 @@ jobs:
- name: Push Docker image
uses: docker/build-push-action@v5
with:
context: .
platforms: linux/amd64,linux/arm64
push: true
context: ./config/app
file: ./config/app/Dockerfile
platforms: linux/amd64,linux/arm64
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
build-args: |
"NUXT_MAIL_URL=${{ secrets.MAIL_URL }}"
deploy:
name: Deploy Docker to a Linux instance
runs-on: ubuntu-latest
Expand All @@ -57,4 +60,4 @@ jobs:
password: ${{ secrets.SERVER_PASSWORD }}
port: ${{ secrets.SERVER_PORT }}
key: ${{ secrets.SERVER_KEY }}
script: ${{ vars.SCRIPT }} ${{ github.repository }} ${{ secrets.APP_NAME }} ${{ secrets.APP_PORT }}
script: ${{ vars.SCRIPT }} ${{ github.repository }} ${{ secrets.APP_NAME }} ${{ secrets.APP_PORT }}
6 changes: 3 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@ logs
*.log

# Misc
.DS_Store
.fleet
.idea

# Local env files
.env
Expand All @@ -30,3 +27,6 @@ sw.*
# Development

.vscode
.DS_Store
.fleet
.idea
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
7 changes: 1 addition & 6 deletions nuxt.config.ts → app/nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,7 @@ export default defineNuxtConfig({
dirs: ["types"],
},
runtimeConfig: {
apiKey: "",
token: "",
mailHost: "",
mailPort: "",
mailUser: "",
mailPassword: "",
mailUlrl: "",
public: {
name: "Knury Knurów",
version: "0.1.0",
Expand Down
File renamed without changes.
File renamed without changes.
3 changes: 1 addition & 2 deletions pages/index.vue → app/pages/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,7 @@ const register = async () => {
</aside>
<h1 class="text-center">Rejestracja drużyny</h1>
<p class="text-justify">
Aby zapisać swoją drużynę na turniej koszykówki ulicznej Knurowski Streetball Kapitan musi wypełnienić
formularz, a następnie potwierdzić go drogą e-mail.
Turniej odbędzie się 25 Maja 2024 na Kompleksie Boisk "Orlik" przy ulicy Ułanów 8 w Knurowie. Aby zapisać swoją drużynę na turniej koszykówki ulicznej Knurowski Streetball Kapitan musi wypełnienić formularz, a następnie potwierdzić go drogą e-mail.
<span>
Wymogiem rejestracji jest akceptacja
<NuxtLink
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
8 changes: 7 additions & 1 deletion Dockerfile → config/app/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,13 @@ FROM node:current-alpine

LABEL authors = "botprzemek,pawelos231,akolt19d,nozowymrozon"

WORKDIR /app
ARG NUXT_MAIL_URL

ENV HOST="127.0.0.1"
ENV PORT="3000"
ENV NUXT_MAIL_URL ${NUXT_MAIL_URL}

WORKDIR /var/www/html/tournament-app

COPY . .

Expand Down
16 changes: 16 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: tournament
version: 3.7
services:
app:
container_name: tournament-app
ports:
- 60002:3000
user: node
build:
dockerfile: Dockerfile
context: ./config/app
working_dir: /var/www/html/avantage
volumes:
- ./app:/var/www/html/avantage
networks:
- default

0 comments on commit 2b300bf

Please sign in to comment.