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

Corrige la gestion des caches dans l'intégration continue #1685

Merged
merged 14 commits into from
Oct 18, 2021
Merged

Conversation

HAEKADI
Copy link
Contributor

@HAEKADI HAEKADI commented Sep 30, 2021

Related to #1669

Problème :

Le cache du build n'est pas mis à jour après chaque build.

En ce moment, il n'y a pas d'option update cache, il faut créer un nouveau cache après chaque push.

Solution :

Ajouter le sha du commit à la clé du cache pour s'assurer qu'un nouveau cache est créé à chaque update du code, et rajouter une clé secondaire qui permet de récupérer des caches similaires pour éviter de réinstaller tous les packages.

Pour plus de détails : ici, ici, et ici.

  • Amélioration technique.
  • Zones impactées : Configuration de l'intégration continue

@HAEKADI HAEKADI changed the title Build cache Créer un nouveau cache après chaque build Sep 30, 2021
Copy link
Member

@MattiSG MattiSG left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

I strongly recommend to check that the deployment step works properly before merging, though.

.github/workflows/workflow.yml Outdated Show resolved Hide resolved
.github/workflows/workflow.yml Outdated Show resolved Hide resolved
.github/workflows/workflow.yml Outdated Show resolved Hide resolved
@MattiSG MattiSG changed the title Créer un nouveau cache après chaque build Corrige la gestion des caches dans l'intégration continue Oct 5, 2021
@HAEKADI
Copy link
Contributor Author

HAEKADI commented Oct 18, 2021

J'ai testé le déploiement.
Screenshot 2021-10-18 at 09 55 30

@HAEKADI HAEKADI merged commit ff9d9e2 into master Oct 18, 2021
@HAEKADI HAEKADI deleted the build-cache branch October 18, 2021 08:21
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.

2 participants