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

chore: setup CD #241

Merged
merged 7 commits into from
Dec 3, 2024
Merged

chore: setup CD #241

merged 7 commits into from
Dec 3, 2024

Conversation

gary-van-woerkens
Copy link
Contributor

@gary-van-woerkens gary-van-woerkens commented Nov 28, 2024

🎯 Objectif

Génération d'une image stockée dans GHCR.
Utile pour ceux qui souhaitent déployer sites-faciles dans leur environnement.

🔍 Implémentation

  • Ajout d'une action Github pour le build de l'image.
  • Modifications du Dockerfile pour spécifier le port du container et l'UID du user.

@gary-van-woerkens gary-van-woerkens changed the title chore: setup CD (#1) chore: setup CD Nov 28, 2024
.github/workflows/cd.yml Outdated Show resolved Hide resolved
@Ash-Crow
Copy link
Collaborator

Ash-Crow commented Dec 2, 2024

Je vois qu'il y a des appels à des variables d'environnement : il y a des choses qu'il faut que je configure côté paramètres du dépôt dans Github ?

@gary-van-woerkens
Copy link
Contributor Author

Dans le workflow Github toutes les variables d'environnement sont fournies par Github.
Dans le Dockerfile CONTAINER_PORT devra être précisé au run de l'image.

@gary-van-woerkens
Copy link
Contributor Author

@Ash-Crow Pas certain que l'image déposée dans GHCR sera publique par défaut.
Il faudra peut-être cliquer sur un bouton dans l'interface de la registry Github pour que tout le monde puisse y accéder.

@Ash-Crow Ash-Crow merged commit 070b662 into numerique-gouv:main Dec 3, 2024
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

Successfully merging this pull request may close these issues.

3 participants