Replies: 2 comments
-
Hi there @SaintRain and welcome to our community! Thank you for asking a great question 🙂 To get started, introduce yourself in our official introduction thread |
Beta Was this translation helpful? Give feedback.
-
🕒 Discussion Activity Reminder 🕒 This Discussion has been labeled as dormant by an automated system for having no activity in the last 60 days. Please consider one the following actions: 1️⃣ Close as Out of Date: If the topic is no longer relevant, close the Discussion as 2️⃣ Provide More Information: Share additional details or context — or let the community know if you've found a solution on your own. 3️⃣ Mark a Reply as Answer: If your question has been answered by a reply, mark the most helpful reply as the solution. Note: This dormant notification will only apply to Discussions with the Thank you for helping bring this Discussion to a resolution! 💬 |
Beta Was this translation helpful? Give feedback.
-
Select Topic Area
Question
Body
hi!
We try to use docker cache during build our images via github actions.
When we build with following command:
DOCKER_BUILDKIT=1 docker build --build-arg COMPOSER_AUTH_TOKEN="${{ secrets.COMPOSER_AUTH_TOKEN }}" --build-arg NEW_RELIC_LICENSE_KEY="${{ secrets.NEW_RELIC_LICENSE_KEY }}" --build-arg APP_ENV="production" -t $IMAGE_GCR:$CI_SHA_SHORT -t $IMAGE_GCR:latest -t $IMAGE_GCR:base-prod -t $IMAGE_DO:base --cache-from $IMAGE_GCR:base-prod -f ./app.docker.builder .
we see that docker does not use docker-cache image
you can look here
https://github.com/bnberry/miami-crm/actions/runs/3546828467/jobs/5956278931
from 3-d step
We we use that command in our server we see following:
#5 [ 1/37] FROM docker.io/library/php:7.4-fpm-alpine3.13@sha256:757c4a370a4aee1ec59b53932a99c5ce4d4f9c2ce18f75a3269aeeb931d8b66a #5 sha256:0aeccd282c8758a91941eeb0df96c7e1ca14485622b9d882b5f55754b9c0d2ea #5 DONE 0.0s #6 [ 2/37] WORKDIR /var/www #6 sha256:cd4ea2234a2651d906619ac0693c92c75346ae2b66035cf985026e234237066d #6 CACHED
#7 [ 3/37] RUN apk add --no-cache autoconf cmake make musl-dev gcc gettext-dev libintl && wget https://gitlab.com/rilian-la-te/musl-locales/-/archive/master/musl-locales-master.zip && unzip musl-locales-master.zip && cd musl-locales-master && cmake -DLOCALE_PROFILE=OFF -D CMAKE_INSTALL_PREFIX:PATH=/usr . && make && make install && cd .. && rm -r musl-locales-master && rm -r musl-locales-master.zip #7 sha256:3e00db573f48abd5b6e01c11764ef0ea86b29a3c5da40de45300439f6987bc97 #7 CACHED
may be you have recommendations how to use docker cache in github actions?
Beta Was this translation helpful? Give feedback.
All reactions