P
💻DeveloppementAdvancedClaude

Configure a CI/CD Pipeline with GitHub Actions

Configure a professional CI/CD pipeline with GitHub Actions covering tests, security, Docker build, and multi-environment deployment.

Paste in your AI

Paste this prompt in ChatGPT, Claude or Gemini and customize the variables in brackets.

Tu es un expert DevOps spécialisé dans l'automatisation des pipelines CI/CD avec GitHub Actions. Je dois mettre en place un pipeline complet pour mon projet.

Informations sur le projet :

  • Type : [EX: API Node.js, application React, microservice Python]
  • Environnements cibles : [EX: staging sur Render, production sur AWS ECS]
  • Registry Docker : [EX: GitHub Container Registry, DockerHub, AWS ECR]
  • Base de données : [EX: PostgreSQL, migration avec Prisma]
  • Tests : [EX: Jest pour unitaires, Playwright pour E2E]

Exigences du pipeline :

  • Branches : [EX: feature/* → staging, main → production]
  • Secrets nécessaires : [LISTER_LES_NOMS_DE_SECRETS_SANS_VALEURS]
  • Notifications : [EX: Slack, email sur échec]

Crée les fichiers GitHub Actions complets pour :

  1. Workflow CI (.github/workflows/ci.yml) : lint, tests unitaires, tests d'intégration, analyse de sécurité (Trivy, SAST), rapport de couverture de code.
  2. Workflow CD (.github/workflows/cd.yml) : build et push de l'image Docker, déploiement sur staging automatique, déploiement en production avec validation manuelle.
  3. Workflow de release : génération automatique du changelog et création de releases GitHub.

Pour chaque workflow, explique le rôle de chaque job et step, et indique les optimisations de cache utilisées pour accélérer les builds.

100% found this useful

Personalize this prompt with Léa

Léa rewrites this prompt for your job and your exact goal — 3 quick questions.

Why this prompt works

<p>This prompt is designed to produce immediately usable GitHub Actions workflows covering the three essential pipeline types: continuous integration (CI), continuous deployment (CD), and release management. The separation into three distinct files follows modularity best practices.</p><p>Including security analysis (Trivy for container vulnerabilities, SAST for code) from the CI phase is crucial as it detects issues earliest in the development cycle, where fixing them costs the least.</p><p>Requesting explanations about cache optimizations transforms this prompt into a learning tool: understanding why we cache node_modules or Docker layers allows developers to reproduce and adapt these optimizations in other contexts.</p>

Use Cases

Setting up CI/CD from scratchMigrating from CircleCI or JenkinsAutomating deployments

Expected Output

Three complete GitHub Actions YAML files for CI, CD, and release, with explanations of each step and cache optimizations.

Improve this prompt

Run this prompt through the Optimizer to strengthen its context, constraints and expected format.

Improve this prompt with the Optimizer

Comments

  • LéaAI

    Pour sécuriser votre pipeline, créez des environnements GitHub (Settings > Environments) distincts (staging/production) avec leurs propres secrets et règles de protection (ex: approbation manuelle requise pour prod). Ajoutez un step `trivy image` avant le push pour scanner les vulnérabilités, et utilisez des matrices de test (Node 18/20, Python 3.11) pour paralléliser le CI.

📬 Get new prompts every week

Join our newsletter and never miss a prompt.

Go further

Similar Prompts

💻DeveloppementIntermediateAll AIs

Midjourney Prompt for Creating a Chatbot

Midjourney has become an essential tool for designing a chatbot's visual identity. Whether you're developing a virtual assistant for customer service, a conversational bot for your e-commerce site, or an AI companion for a mobile app, your chatbot's appearance plays a crucial role in user engagement. A well-designed avatar inspires trust, humanizes the interaction, and reinforces your brand image. With Midjourney, you can generate avatars, conversational interfaces, mascots, and UI visual elements without needing graphic design skills. The right prompts let you create visuals consistent with your brand guidelines, from accessible cartoon styles to clean corporate designs. In this guide, you'll find optimized prompts to generate all the visual assets your chatbot needs: main avatar, emotion variations, stylized speech bubbles, and welcome screens. Each prompt has been tested and refined to produce professional results you can use directly in your development projects.

0242
💻DeveloppementBeginnerAll AIs

Encryption at rest and in transit

Securing data at rest and in transit

0230
💻DeveloppementIntermediateAll AIs

DALL-E Prompt for Generating SQL Queries

DALL-E, the image generation model developed by OpenAI, might seem like an unexpected choice for working with SQL queries. Yet, it proves to be a powerful tool for creating visual representations of database schemas, relational diagrams, and SQL query flows. By visualizing your data structures as clear, educational images, you make it easier to understand table relationships, complex joins, and database architectures. Whether you're a trainer looking to illustrate a course, a developer wanting to visually document a database, or an analyst preparing a presentation, DALL-E lets you transform abstract SQL concepts into immediately understandable visual schemas. This visual approach perfectly complements traditional code generation tools by offering a graphical dimension that text alone cannot convey. Discover how to formulate your prompts to obtain professional database diagrams and exploitable visual representations of SQL queries.

0218
💻DeveloppementAdvancedAll AIs

Terratest for Terraform Modules

Testing Terraform Modules

0210