-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of github.com:bperel/DucksManager
- Loading branch information
Showing
33 changed files
with
387 additions
and
126 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: "npm" | ||
directory: "/" | ||
schedule: | ||
interval: "daily" | ||
- package-ecosystem: "npm" | ||
directory: "/packages/api" | ||
schedule: | ||
interval: "daily" | ||
- package-ecosystem: "npm" | ||
directory: "/packages/api-routes" | ||
schedule: | ||
interval: "daily" | ||
- package-ecosystem: "npm" | ||
directory: "/packages/axios-helper" | ||
schedule: | ||
interval: "daily" | ||
- package-ecosystem: "npm" | ||
directory: "/packages/prisma-clients" | ||
schedule: | ||
interval: "daily" | ||
- package-ecosystem: "npm" | ||
directory: "/packages/types" | ||
schedule: | ||
interval: "daily" | ||
- package-ecosystem: "npm" | ||
directory: "/apps/web" | ||
schedule: | ||
interval: "daily" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -54,8 +54,10 @@ jobs: | |
key: ${{ secrets.PRODUCTION_SSH_KEY }} | ||
command_timeout: 60m | ||
script: | | ||
cd workspace/DucksManager2 | ||
docker compose run --rm --no-deps duck-estimator | ||
cd workspace/DucksManager2/apps/duck-estimator | ||
echo ${{ secrets.DOCKER_REGISTRY_TOKEN_DM }} | docker login ghcr.io -u bperel --password-stdin | ||
docker compose pull | ||
docker compose run --rm duck-estimator | ||
- name: Run sprite-names-updater | ||
uses: appleboy/[email protected] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
name: deploy-duck-estimator | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
paths: | ||
- ".github/workflows/deploy-duck-estimator.yml" | ||
- "apps/duck-estimator" | ||
- "pnpm-lock.yaml" | ||
branches: | ||
- "master" | ||
jobs: | ||
deploy-duck-estimator: | ||
runs-on: ubuntu-latest | ||
environment: production | ||
steps: | ||
- name: Check out repository | ||
uses: actions/checkout@master | ||
with: | ||
submodules: recursive | ||
|
||
- name: Download web .env file | ||
uses: nicklasfrahm/scp-action@main | ||
with: | ||
direction: download | ||
host: ${{ secrets.PRODUCTION_SSH_HOST }} | ||
fingerprint: ${{ secrets.PRODUCTION_SSH_FINGERPRINT }} | ||
username: ${{ secrets.PRODUCTION_SSH_USER }} | ||
key: ${{ secrets.PRODUCTION_SSH_KEY }} | ||
source: /home/bperel/workspace/DucksManager2/apps/duck-estimator/.env.local | ||
target: apps/duck-estimator/.env.local | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
with: | ||
driver-opts: | | ||
image=moby/buildkit:v0.12.3 | ||
- name: Login to GitHub Container Registry | ||
uses: docker/login-action@v3 | ||
with: | ||
registry: ghcr.io | ||
username: bperel | ||
password: ${{ secrets.DOCKER_REGISTRY_TOKEN_DM }} | ||
|
||
- name: Build and push app | ||
uses: docker/build-push-action@v5 | ||
with: | ||
context: . | ||
file: apps/duck-estimator/Dockerfile | ||
platforms: linux/x86_64 | ||
push: true | ||
cache-from: type=registry,ref=ghcr.io/bperel/duck-estimator:buildcache | ||
cache-to: type=registry,ref=ghcr.io/bperel/duck-estimator:buildcache,mode=max | ||
tags: ghcr.io/bperel/duck-estimator:latest | ||
|
||
- name: Upload docker-compose.yml file | ||
uses: nicklasfrahm/[email protected] | ||
with: | ||
direction: upload | ||
host: ${{ secrets.PRODUCTION_SSH_HOST }} | ||
fingerprint: ${{ secrets.PRODUCTION_SSH_FINGERPRINT }} | ||
username: ${{ secrets.PRODUCTION_SSH_USER }} | ||
key: ${{ secrets.PRODUCTION_SSH_KEY }} | ||
source: apps/duck-estimator/docker-compose.yml | ||
target: /home/bperel/workspace/DucksManager2/apps/duck-estimator/docker-compose.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,15 @@ | |
path = apps/duck-estimator | ||
url = [email protected]:bperel/duck-estimator.git | ||
branch=master | ||
[submodule "apps/duckguessr"] | ||
[submodule "duckguessr-old"] | ||
path = apps/duckguessr-old | ||
url = [email protected]:bperel/duckguessr.git | ||
branch=master | ||
[submodule "duckguessr"] | ||
path = apps/duckguessr | ||
url = [email protected]:bperel/duckguessr.git | ||
branch=nuxt3-to-vite-vue3 | ||
[submodule "duckguessr-ml"] | ||
branch=ts | ||
path = packages/duckguessr-ml | ||
url = [email protected]:bperel/duckguessr-ml.git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule duck-estimator
updated
from 46ca02 to 612e1c
Submodule duckguessr
updated
from fc58de to 323e72
Submodule duckguessr-old
added at
dbd39e
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.