Skip to content
This repository has been archived by the owner on Jul 8, 2024. It is now read-only.

Commit

Permalink
Revert "Dev (#124)"
Browse files Browse the repository at this point in the history
This reverts commit f07c102.
  • Loading branch information
Anatole-Godard committed Jul 8, 2024
1 parent f07c102 commit fc77048
Show file tree
Hide file tree
Showing 168 changed files with 5,613 additions and 8,927 deletions.
95 changes: 0 additions & 95 deletions .github/workflows/basket.yml

This file was deleted.

18 changes: 3 additions & 15 deletions .github/workflows/delivery.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ on:
push:
branches: [delivery]
pull_request:
branches: [dev, main]
branches: [main]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: pnpm/action-setup@v4
- uses: pnpm/action-setup@v2
with:
version: latest
- uses: actions/setup-node@v3
Expand All @@ -33,7 +33,7 @@ jobs:
needs: build
steps:
- uses: actions/checkout@master
- uses: pnpm/action-setup@v4
- uses: pnpm/action-setup@v2
with:
version: latest
- uses: actions/setup-node@v3
Expand Down Expand Up @@ -80,15 +80,3 @@ jobs:
file: ./services/delivery/Dockerfile
push: true
tags: floriaaan/goodfood-delivery:latest

deploy:
runs-on: ubuntu-latest
needs: [build, test, publish]

steps:
- name: Install Kubectl
uses: azure/setup-kubectl@v3
- name: Setup Cluster Authentication
run: cat "${{ secrets.KUBECONFIG }}" > /tmp/kubeconfig
- name: Deploying delivery
run: kubectl --kubeconfig=/tmp/kubeconfig rollout restart deployment delivery-service
18 changes: 3 additions & 15 deletions .github/workflows/gateway.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ on:
push:
branches: [gateway]
pull_request:
branches: [dev, main]
branches: [main]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: pnpm/action-setup@v4
- uses: pnpm/action-setup@v2
with:
version: latest
- uses: actions/setup-node@v3
Expand All @@ -37,7 +37,7 @@ jobs:
# needs: build
# steps:
# - uses: actions/checkout@master
# - uses: pnpm/action-setup@v4
# - uses: pnpm/action-setup@v2
# with:
# version: latest
# - uses: actions/setup-node@v3
Expand Down Expand Up @@ -85,15 +85,3 @@ jobs:
file: ./services/gateway/Dockerfile
push: true
tags: floriaaan/goodfood-gateway:latest

deploy:
runs-on: ubuntu-latest
needs: [build, test, publish]

steps:
- name: Install Kubectl
uses: azure/setup-kubectl@v3
- name: Setup Cluster Authentication
run: cat ${{ secrets.KUBECONFIG }} > /tmp/kubeconfig
- name: Deploying gateway
run: kubectl --kubeconfig=/tmp/kubeconfig rollout restart deployment gateway
13 changes: 0 additions & 13 deletions .github/workflows/log.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,16 +63,3 @@ jobs:
file: ./services/log/Dockerfile
push: true
tags: floriaaan/goodfood-log:latest

deploy:
runs-on: ubuntu-latest
needs: [build, test, publish]
steps:
- name: Deploying log
uses: appleboy/[email protected]
with:
host: ${{ secrets.SSH_HOST }}
username: ${{ secrets.SSH_USER }}
key: ${{ secrets.SSH_KEY }}
port: ${{ secrets.SSH_PORT }}
script: kubectl rollout restart deployment log-service
18 changes: 3 additions & 15 deletions .github/workflows/notifications.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: pnpm/action-setup@v4
- uses: pnpm/action-setup@v2
with:
version: latest
- uses: actions/setup-node@v3
Expand All @@ -32,7 +32,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: pnpm/action-setup@v4
- uses: pnpm/action-setup@v2
with:
version: latest
- uses: actions/setup-node@v3
Expand Down Expand Up @@ -79,16 +79,4 @@ jobs:
context: ./services/
file: ./services/notification/Dockerfile
push: true
tags: floriaaan/goodfood-notification:latest

deploy:
runs-on: ubuntu-latest
needs: [build, test, publish]

steps:
- name: Install Kubectl
uses: azure/setup-kubectl@v3
- name: Setup Cluster Authentication
run: cat ${{ secrets.KUBECONFIG }} > /tmp/kubeconfig
- name: Deploying notifications
run: kubectl --kubeconfig=/tmp/kubeconfig rollout restart deployment notifications-service
tags: floriaaan/goodfood-notification:latest
16 changes: 2 additions & 14 deletions .github/workflows/order.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: pnpm/action-setup@v4
- uses: pnpm/action-setup@v2
with:
version: latest
- uses: actions/setup-node@v3
Expand All @@ -32,7 +32,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: pnpm/action-setup@v4
- uses: pnpm/action-setup@v2
with:
version: latest
- uses: actions/setup-node@v3
Expand Down Expand Up @@ -80,15 +80,3 @@ jobs:
file: ./services/order/Dockerfile
push: true
tags: floriaaan/goodfood-order:latest

deploy:
runs-on: ubuntu-latest
needs: [build, test, publish]

steps:
- name: Install Kubectl
uses: azure/setup-kubectl@v3
- name: Setup Cluster Authentication
run: cat ${{ secrets.KUBECONFIG }} > /tmp/kubeconfig
- name: Deploying order
run: kubectl --kubeconfig=/tmp/kubeconfig rollout restart deployment order-service
18 changes: 3 additions & 15 deletions .github/workflows/payment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: pnpm/action-setup@v4
- uses: pnpm/action-setup@v2
with:
version: latest
- uses: actions/setup-node@v3
Expand All @@ -32,7 +32,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: pnpm/action-setup@v4
- uses: pnpm/action-setup@v2
with:
version: latest
- uses: actions/setup-node@v3
Expand Down Expand Up @@ -79,16 +79,4 @@ jobs:
context: ./services/
file: ./services/payment/Dockerfile
push: true
tags: floriaaan/goodfood-payment:latest

deploy:
runs-on: ubuntu-latest
needs: [build, test, publish]

steps:
- name: Install Kubectl
uses: azure/setup-kubectl@v3
- name: Setup Cluster Authentication
run: cat ${{ secrets.KUBECONFIG }} > /tmp/kubeconfig
- name: Deploying payment
run: kubectl --kubeconfig=/tmp/kubeconfig rollout restart deployment payment-service
tags: floriaaan/goodfood-payment:latest
23 changes: 4 additions & 19 deletions .github/workflows/product.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ on:
push:
branches: [product-service]
pull_request:
branches: [main, dev]
branches: [main]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: pnpm/action-setup@v4
- uses: pnpm/action-setup@v2
with:
version: latest
- uses: actions/setup-node@v3
Expand All @@ -33,7 +33,7 @@ jobs:
needs: build
steps:
- uses: actions/checkout@master
- uses: pnpm/action-setup@v4
- uses: pnpm/action-setup@v2
with:
version: latest
- uses: actions/setup-node@v3
Expand Down Expand Up @@ -80,19 +80,4 @@ jobs:
context: ./services/
file: ./services/product/Dockerfile
push: true
tags: floriaaan/goodfood-product:latest

deploy:
runs-on: ubuntu-latest
needs: [build, test, publish]
steps:
- name: Deploying product
uses: appleboy/[email protected]
with:
host: ${{ secrets.SSH_HOST }}
username: ${{ secrets.SSH_USER }}
key: ${{ secrets.SSH_KEY }}
port: ${{ secrets.SSH_PORT }}
script: |
ls -al
kubectl rollout restart deployment product-service
tags: floriaaan/goodfood-product:latest
18 changes: 3 additions & 15 deletions .github/workflows/promotions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: pnpm/action-setup@v4
- uses: pnpm/action-setup@v2
with:
version: latest
- uses: actions/setup-node@v3
Expand All @@ -32,7 +32,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: pnpm/action-setup@v4
- uses: pnpm/action-setup@v2
with:
version: latest
- uses: actions/setup-node@v3
Expand Down Expand Up @@ -79,16 +79,4 @@ jobs:
context: ./services/
file: ./services/promotions/Dockerfile
push: true
tags: floriaaan/goodfood-promotions:latest

deploy:
runs-on: ubuntu-latest
needs: [build, test, publish]

steps:
- name: Install Kubectl
uses: azure/setup-kubectl@v3
- name: Setup Cluster Authentication
run: cat ${{ secrets.KUBECONFIG }} > /tmp/kubeconfig
- name: Deploying promotions
run: kubectl --kubeconfig=/tmp/kubeconfig rollout restart deployment promotions-service
tags: floriaaan/goodfood-promotions:latest
Loading

0 comments on commit fc77048

Please sign in to comment.