Skip to content

Commit

Permalink
Merge branch 'flyio'
Browse files Browse the repository at this point in the history
  • Loading branch information
George-Spanos committed Dec 31, 2023
2 parents b7ce8a1 + 07ba520 commit ab4fefd
Show file tree
Hide file tree
Showing 40 changed files with 93 additions and 932 deletions.
35 changes: 22 additions & 13 deletions .github/workflows/build-and-deploy-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -110,20 +110,29 @@ jobs:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Change docker stack tag
run: |
sed -i "s/\${TAG}/${{ github.ref_name }}/g" docker-stack.yml
sed -i "s/\${REPOSITORY_NAME}/${{ secrets.REPOSITORY_NAME }}/g" docker-stack.yml
- name: Deploy Stack
uses: kitconcept/docker-stack-deploy@v1.2.0
- uses: superfly/flyctl-actions/setup-flyctl@master
- name: Log in to registry
uses: docker/login-action@v2
with:
remote_host: ${{ secrets.HOST }}
remote_user: ${{ secrets.USERNAME }}
remote_port: ${{ secrets.PORT }}
remote_private_key: ${{ secrets.KEY }}
registry: ghcr.io
deploy_timeout: 300
username: ${{ secrets.CONTAINER_USERNAME }}
password: ${{ secrets.CONTAINER_PASSWORD }}
stack_file: "docker-stack.yml"
stack_name: "playpokerodds"
- run: |
docker pull ${{ secrets.REPOSITORY_NAME }}/ppo-ui:${{ github.ref_name }}
docker pull ${{ secrets.REPOSITORY_NAME }}/ppo-api:${{ github.ref_name }}
docker pull ${{ secrets.REPOSITORY_NAME }}/ppo-calc-odds:${{ github.ref_name }}
- name: deploy ui
run: |
flyctl deploy --image ${{ secrets.REPOSITORY_NAME }}/ppo-ui:${{ github.ref_name }} \
--local-only src/ui \
--image-label ${{ github.ref_name }}
- name: deploy api
run: |
flyctl deploy --image ${{ secrets.REPOSITORY_NAME }}/ppo-api:${{ github.ref_name }} \
--local-only src/web-api \
--image-label ${{ github.ref_name }}
- name: deploy calc-odds
run: |
flyctl deploy --image ${{ secrets.REPOSITORY_NAME }}/ppo-calc-odds:${{ github.ref_name }} \
--local-only src/calc-odds-api \
--image-label ${{ github.ref_name }}
93 changes: 0 additions & 93 deletions docker-stack.yml

This file was deleted.

24 changes: 24 additions & 0 deletions src/calc-odds-api/fly.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# fly.toml app configuration file generated for ppo-calc-odds on 2023-12-31T19:49:23+02:00
#
# See https://fly.io/docs/reference/configuration/ for information about how to use this file.
#

app = "ppo-calc-odds"
primary_region = "ams"

[build]
dockerfile = "Dockerfile"

[http_service]
internal_port = 7071
force_https = true
auto_stop_machines = true
auto_start_machines = true
min_machines_running = 0
processes = ["app"]
[env]
ITERATIONS = "50000"
[[vm]]
cpu_kind = "shared"
cpus = 1
memory_mb = 1024
1 change: 0 additions & 1 deletion src/ui/angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
"$schema": "./node_modules/nx/schemas/workspace-schema.json",
"version": 2,
"projects": {
"admin": "apps/admin",
"auth-domain": "libs/auth/domain",
"auth-feature-user-form": "libs/auth/feature-user-form",
"client": "apps/client",
Expand Down
36 changes: 0 additions & 36 deletions src/ui/apps/admin/.eslintrc.json

This file was deleted.

22 changes: 0 additions & 22 deletions src/ui/apps/admin/jest.config.ts

This file was deleted.

92 changes: 0 additions & 92 deletions src/ui/apps/admin/project.json

This file was deleted.

25 changes: 0 additions & 25 deletions src/ui/apps/admin/src/app/app-routing.module.ts

This file was deleted.

4 changes: 0 additions & 4 deletions src/ui/apps/admin/src/app/app.component.css

This file was deleted.

1 change: 0 additions & 1 deletion src/ui/apps/admin/src/app/app.component.html

This file was deleted.

12 changes: 0 additions & 12 deletions src/ui/apps/admin/src/app/app.component.ts

This file was deleted.

Loading

0 comments on commit ab4fefd

Please sign in to comment.