From 3f4b7b71f54214c55f05ff4480fb04f06109dd3b Mon Sep 17 00:00:00 2001 From: Ravencodess <115118888+Ravencodess@users.noreply.github.com> Date: Fri, 19 Jul 2024 19:52:31 +0100 Subject: [PATCH 1/4] Create dev-cicd.yml --- .github/workflows/dev-cicd.yml | 59 ++++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 .github/workflows/dev-cicd.yml diff --git a/.github/workflows/dev-cicd.yml b/.github/workflows/dev-cicd.yml new file mode 100644 index 00000000..aa75d6d2 --- /dev/null +++ b/.github/workflows/dev-cicd.yml @@ -0,0 +1,59 @@ +name: Development CI/CD Pipeline + +on: + push: + branches: + - dev + paths-ignore: + - .github/workflows/** + +concurrency: + group: ${{ github.ref }} + cancel-in-progress: true + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v3 + + - name: Set up Node.js + uses: actions/setup-node@v3 + with: + node-version: '20' + + - name: Cache npm modules + uses: actions/cache@v3 + with: + path: ~/.npm + key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }} + restore-keys: | + ${{ runner.os }}-npm- + + - name: Install npm + run: npm install -g npm@9 + + - name: Install dependencies + run: npm install + + - name: Lint code + run: npm run lint + + - name: Build project + run: npm run build + + deploy: + runs-on: ubuntu-latest + needs: build + + steps: + - name: Deploy to dev environment + uses: appleboy/ssh-action@v1.0.3 + with: + host: ${{ secrets.HOST }} + username: ${{ secrets.USERNAME }} + password: ${{ secrets.PASSWORD }} + script: | + ./deploy_dev.sh remix From 5e1f08682da26007d72bb0d5263989e2e6a31212 Mon Sep 17 00:00:00 2001 From: Ravencodess <115118888+Ravencodess@users.noreply.github.com> Date: Fri, 19 Jul 2024 19:53:36 +0100 Subject: [PATCH 2/4] Create augusthottie.py --- augusthottie.py | 1 + 1 file changed, 1 insertion(+) create mode 100644 augusthottie.py diff --git a/augusthottie.py b/augusthottie.py new file mode 100644 index 00000000..a2b395f1 --- /dev/null +++ b/augusthottie.py @@ -0,0 +1 @@ +print("warra hot test") From 9c8a8b910db59265a13fe8248e162d1aea69839f Mon Sep 17 00:00:00 2001 From: Ravencodess <115118888+Ravencodess@users.noreply.github.com> Date: Fri, 19 Jul 2024 20:03:33 +0100 Subject: [PATCH 3/4] Delete augusthottie.py --- augusthottie.py | 1 - 1 file changed, 1 deletion(-) delete mode 100644 augusthottie.py diff --git a/augusthottie.py b/augusthottie.py deleted file mode 100644 index a2b395f1..00000000 --- a/augusthottie.py +++ /dev/null @@ -1 +0,0 @@ -print("warra hot test") From e91c9832fdc850001fa6e2f06ed33e2990ed0a60 Mon Sep 17 00:00:00 2001 From: Ravencodess <115118888+Ravencodess@users.noreply.github.com> Date: Fri, 19 Jul 2024 20:08:00 +0100 Subject: [PATCH 4/4] Create prod-cicd.yml --- .github/workflows/prod-cicd.yml | 60 +++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 .github/workflows/prod-cicd.yml diff --git a/.github/workflows/prod-cicd.yml b/.github/workflows/prod-cicd.yml new file mode 100644 index 00000000..64dd3d30 --- /dev/null +++ b/.github/workflows/prod-cicd.yml @@ -0,0 +1,60 @@ + +name: Production CI/CD Pipeline + +on: + push: + branches: + - main + paths-ignore: + - .github/workflows/** + +concurrency: + group: ${{ github.ref }} + cancel-in-progress: true + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v3 + + - name: Set up Node.js + uses: actions/setup-node@v3 + with: + node-version: '20' + + - name: Cache npm modules + uses: actions/cache@v3 + with: + path: ~/.npm + key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }} + restore-keys: | + ${{ runner.os }}-npm- + + - name: Install npm + run: npm install -g npm@9 + + - name: Install dependencies + run: npm install + + - name: Lint code + run: npm run lint + + - name: Build project + run: npm run build + + deploy: + runs-on: ubuntu-latest + needs: build + + steps: + - name: Deploy to prod environment + uses: appleboy/ssh-action@v1.0.3 + with: + host: ${{ secrets.HOST }} + username: ${{ secrets.USERNAME }} + password: ${{ secrets.PASSWORD }} + script: | + ./deploy_prod.sh remix