-
Notifications
You must be signed in to change notification settings - Fork 582
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
Repository/image name should be lowercased automatically in cache parameters. #424
Labels
Comments
Like I said in #237 (comment), it adds an unnecessary complexity that should rather be handled upstream by GitHub. Or you can add a step in your workflow: - name: Format repo slug
uses: actions/github-script@v4
id: repo_slug
with:
result-encoding: string
script: return `ghcr.io/${github.repository.toLowerCase()}`
- name: Build and push dill to Docker
uses: docker/build-push-action@v2
with:
context: .
builder: ${{ steps.buildx.outputs.name }}
file: ./docker/Dockerfile
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=registry,ref=${{ steps.repo_slug.outputs.result }}:main
cache-to: type=inline
As a side note, |
Thanks for the documentation update, that will help |
PromoFaux
added a commit
to PromoFaux/fintech-to-ynab
that referenced
this issue
Oct 2, 2021
…ild-push-action#424 for reference of workaround Signed-off-by: Adam Warner <me@adamwarner.co.uk>
PromoFaux
added a commit
to PromoFaux/fintech-to-ynab
that referenced
this issue
Oct 2, 2021
…ild-push-action#424 for reference of workaround Signed-off-by: Adam Warner <me@adamwarner.co.uk>
PromoFaux
added a commit
to PromoFaux/fintech-to-ynab
that referenced
this issue
Oct 2, 2021
…ild-push-action#424 for reference of workaround Signed-off-by: Adam Warner <me@adamwarner.co.uk>
PromoFaux
added a commit
to PromoFaux/fintech-to-ynab
that referenced
this issue
Oct 2, 2021
…ild-push-action#424 for reference of workaround Signed-off-by: Adam Warner <me@adamwarner.co.uk>
PromoFaux
added a commit
to PromoFaux/fintech-to-ynab
that referenced
this issue
Oct 2, 2021
…ild-push-action#424 for reference of workaround Signed-off-by: Adam Warner <me@adamwarner.co.uk>
Closed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It appear the registry name is not lower-cased when used in the
cache-from
parameter. This appears related to #37, but not exactly the same.Behaviour
Steps to reproduce this issue
cache-from
parameter.Expected behaviour
Would expect caching to work
Actual behaviour
Configuration
(This is an excerpt)
The text was updated successfully, but these errors were encountered: