Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement CI/CD #30

Closed
R1N4-Devo opened this issue Oct 23, 2024 · 0 comments
Closed

Implement CI/CD #30

R1N4-Devo opened this issue Oct 23, 2024 · 0 comments
Assignees

Comments

@R1N4-Devo
Copy link
Collaborator

As a DevOps engineer,
I want to set up an automated CI/CD pipeline
so that I can streamline the process of testing and deploying both backend and frontend components efficiently.

Acceptance Criteria

1. Run Backend Tests

  • Step 1: Checkout repository

    • The pipeline should clone the latest version of the backend repository.
  • Step 2: Set up Java

    • Ensure the CI/CD environment has the required version of Java installed.
  • Step 3: Cache Maven dependencies

    • Cache Maven dependencies to speed up the build process.
  • Step 4: Build Java project and run tests

    • Build the Java project.
    • Execute all backend unit and integration tests.

2. Run Frontend Tests

  • Step 1: Checkout repository

    • The pipeline should clone the latest version of the frontend repository.
  • Step 2: Set up Flutter

    • Ensure the CI/CD environment has the required version of Flutter installed.
  • Step 3: Cache Flutter dependencies

    • Cache Flutter dependencies to speed up the build process.
  • Step 4: Get Flutter dependencies

    • Retrieve all necessary Flutter dependencies.
  • Step 5: Run Flutter tests (unit and widget tests)

    • Execute all frontend unit and widget tests to ensure the integrity of the codebase.

3. Deploy Backend to ECS on Tests Passed

  • Step 1: Checkout repository

    • The pipeline should clone the latest version of the backend repository.
  • Step 2: Set up Java

    • Ensure the CI/CD environment has the required version of Java installed.
  • Step 3: Build Docker image

    • Build a Docker image of the backend application.
  • Step 4: Push Docker image to Amazon ECR

    • Push the Docker image to Amazon Elastic Container Registry (ECR).
  • Step 5: Update ECS service

    • Update the Amazon ECS service to deploy the new Docker image.
FM-Devoteam added a commit that referenced this issue Oct 23, 2024
FM-Devoteam added a commit that referenced this issue Oct 23, 2024
FM-Devoteam added a commit that referenced this issue Oct 23, 2024
FM-Devoteam added a commit that referenced this issue Oct 23, 2024
FM-Devoteam added a commit that referenced this issue Oct 23, 2024
FM-Devoteam added a commit that referenced this issue Oct 24, 2024
FM-Devoteam added a commit that referenced this issue Oct 24, 2024
FM-Devoteam added a commit that referenced this issue Oct 24, 2024
FM-Devoteam added a commit that referenced this issue Oct 24, 2024
FM-Devoteam added a commit that referenced this issue Oct 24, 2024
FM-Devoteam added a commit that referenced this issue Oct 24, 2024
FM-Devoteam added a commit that referenced this issue Oct 24, 2024
FM-Devoteam added a commit that referenced this issue Oct 24, 2024
FM-Devoteam added a commit that referenced this issue Oct 24, 2024
FM-Devoteam added a commit that referenced this issue Oct 24, 2024
FM-Devoteam added a commit that referenced this issue Oct 24, 2024
FM-Devoteam added a commit that referenced this issue Oct 24, 2024
FM-Devoteam added a commit that referenced this issue Oct 24, 2024
* #30 init ci/cd config

* #30 fix java action

* #30 fix deployment step

* #30 fix aws login

* #30 fix docker context

* #30 fix ECS Deployment task definition

* #30 fix ECS Deployment task definition

* #30 fix task definition file

* #30 cleanups in taskdefinition file

* #30 fix backend test job

* #30 Fix maven test for backend

* #30 fix env for maven

* #30 fix Flutter version

* #30 fix Flutter version

* #30 fix flutter install path

* #30 fix flutter install path

* #30 fix flutter install path

* #30 fix test folder

* #30 Cleanup workflow trigger

* Setup staging environment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants