Skip to content

Commit ed8ac0d

Browse files
RotheemNakoGH
andauthored
Use lowercase for workflow cache (#870)
## Description ### Summary <!--Brief description of what this PR does.--> ### Related Issues <!-- If applicable --> Closes #<!--0--> ## Changes Made <!--Please describe the changes made in this pull request--> - ... ## Type of Change - [x] 🐛 Bug fix (non-breaking change which fixes an issue) - [ ] ✨ New feature (non-breaking change which adds functionality) - [ ] 🔨 Refactor (non-breaking change that neither fixes a bug nor adds a feature) - [x] 🔧 Infra CI/CD (changes to configs of workflows) - [ ] 💥 BREAKING CHANGE (fix or feature that require a new minimal version of the front-end) ## Impact & Scope - [ ] Core functionality changes - [ ] Single module changes - [ ] Multiple modules changes - [ ] Database migrations required - [x] Other ## Testing - [ ] Added/modified tests that pass the CI - [ ] Tested in a pre-prod - [ ] Tested this locally ## Documentation - [ ] Updated docs accordingly (docs.myecl.fr) : <!--[Docs#0 - Title](https://github.com/aeecleclair/myecl-documentation/pull/0)--> - [ ] Code includes docstrings - [ ] No documentation needed ## Checklist - [x] My code follows the style guidelines of this project - [ ] I have commented my code, particularly in hard-to-understand areas - [ ] Any dependent changes have been merged and published (_Indicate the linked PR for the dependent changes_) ## Additional Notes Add any other context, screenshots, or information about the pull request here. Co-authored-by: NakoGH <[email protected]>
1 parent fad8157 commit ed8ac0d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/publish.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@ jobs:
3434
username: ${{ secrets.DOCKER_REGISTRY_USERNAME }}
3535
password: ${{ secrets.DOCKER_REGISTRY_PASSWORD }}
3636

37+
- name: Normalize repository name
38+
id: repo
39+
run: echo "repo_lc=${GITHUB_REPOSITORY,,}" >> $GITHUB_OUTPUT
40+
3741
- name: Build and push app
3842
uses: docker/[email protected]
3943
with:
@@ -45,4 +49,4 @@ jobs:
4549
cache-from: |
4650
type=registry,ref=${{ secrets.DOCKER_REGISTRY_URL }}/hyperion:alpha
4751
type=registry,ref=${{ secrets.DOCKER_REGISTRY_URL }}/hyperion:latest
48-
cache-to: type=registry,ref=${{ secrets.DOCKER_REGISTRY_URL }}/${{ github.repository }}/cache,mode=max
52+
cache-to: type=registry,ref=${{ secrets.DOCKER_REGISTRY_URL }}/${{ steps.repo.outputs.repo_lc }}/cache,mode=max

0 commit comments

Comments
 (0)