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

NEW CICD workflow, specifically designed for Ella. #56

Draft
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

Quleaf
Copy link
Member

@Quleaf Quleaf commented Nov 18, 2024

This GitHub Actions workflow automates the building, scanning, and deployment of Docker images based on changes to Dockerfiles in the repository. It supports cross-platform builds (for Setonix and Ella), utilizes caching mechanisms to optimize build times, and incorporates security scanning to ensure image integrity.

I have noted there are some minor changes that need to be made before running on this productive git repo. But it still needs to be uploaded, built, and tested on the repo. After merging, I would configure the secrets and other ancilla.

graph TD
    A[Push Event Trigger] ---> B[Prepare Job]
    
    B1>Single *.dockerfile?] -.-> B
    B2>Has specific labels? ] -.-> B
    B3>Which runner?] -.-> B
    B -->|proceed_valid=true| C[Build and Push Job]
    B -->|proceed_valid=false| F[End]
    
    C1[Trivy] -.->D[Build and Push Job]
    C --> D[Scan and Report Job]
  
   
    
    D --> E[Approve and Deploy Job]
    C --> |Fail|G
    D --> |Dissatisfied|G  
    E --> |Disapproved|G[Cleanup Job]

    C3-.->|pull tar|E
    E -.->H[dockerhub]
    E -.->I[Quay.io]
    E -.->J[Acacia S3]      

    subgraph Ella Deploy
        J-.->|Approved & ARM64|K[(WekaFS)]
        K-->|Singularity|L[SIF File]
    end

    subgraph RUNNER storage speed-up
        C[Build and Push Job] -.-> |push tar|C3[(Local storage)]
        C3-.->|pull tar|D[Scan and Report Job]
    end
    
    %% Styling for clarity
    style A fill:#f9f,stroke:#333,stroke-width:2px
    style F fill:#f66,stroke:#333,stroke-width:2px
    style G fill:#bbf,stroke:#333,stroke-width:2px
    style B1 fill:#fff,stroke:#333,stroke-width:2px
    style B2 fill:#fff,stroke:#333,stroke-width:2px
    style B3 fill:#fff,stroke:#333,stroke-width:2px
    style C1 fill:#add8e6,stroke:#333,stroke-width:2px
    style H fill:#add8e6,stroke:#333,stroke-width:2px
    style I fill:#add8e6,stroke:#333,stroke-width:2px
    style J fill:#add8e6,stroke:#333,stroke-width:2px
Loading

@Quleaf Quleaf added the github_actions Pull requests that update GitHub Actions code label Nov 18, 2024
@Quleaf Quleaf self-assigned this Nov 18, 2024
.github/workflows/Readme.md Show resolved Hide resolved
.github/workflows/Readme.md Show resolved Hide resolved
.github/workflows/Readme.md Show resolved Hide resolved
.github/workflows/Readme.md Show resolved Hide resolved
.github/workflows/Readme.md Outdated Show resolved Hide resolved
.github/workflows/docker-ci.yml Outdated Show resolved Hide resolved
.github/workflows/docker-ci.yml Show resolved Hide resolved
.github/workflows/docker-ci.yml Show resolved Hide resolved
.github/workflows/docker-ci.yml Outdated Show resolved Hide resolved
.github/workflows/docker-ci.yml Show resolved Hide resolved
@Quleaf Quleaf requested a review from pelahi November 19, 2024 04:12
@Quleaf
Copy link
Member Author

Quleaf commented Nov 19, 2024

All solved. Please review the submission again. Thank you for your kind help. @pelahi

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
github_actions Pull requests that update GitHub Actions code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants