Open dariocazas opened 2 years ago
Hi. We need this improvement yet. Perhaps you can modify the actions.yml of the repositoriy with dockerhub account using https://github.com/marketplace/actions/push-pre-built-javascript-typescript-docker-container-github-action ?
Regards
Hi. Each execution of this GitHub Action compile the Dockerfile and sprend about 30s of time. How is possible to cache it or avoid to compile again and again? Thank you
Execution log
``` Build container for action use: '/home/runner/work/_actions/Youssef1313/markdown-links-verifier/v0.1.3/Dockerfile'. 2 /usr/bin/docker build -t e28490:1e8df9d204d94ca98dfb76c1134a548c -f "/home/runner/work/_actions/Youssef1313/markdown-links-verifier/v0.1.3/Dockerfile" "/home/runner/work/_actions/Youssef1313/markdown-links-verifier/v0.1.3" 3 Sending build context to Docker daemon 105kB 4 5 Step 1/6 : FROM mcr.microsoft.com/dotnet/sdk:5.0.200 AS build 6 5.0.200: Pulling from dotnet/sdk 7 45b42c59be33: Pulling fs layer 8 752dcc4c3a04: Pulling fs layer 9 5ccb476d6b8b: Pulling fs layer 10 513626bd05cb: Pulling fs layer 11 081e89d42aee: Pulling fs layer 12 30ca590bd38d: Pulling fs layer 13 1a62205983b1: Pulling fs layer 14 f5304883c69c: Pulling fs layer 15 081e89d42aee: Waiting 16 30ca590bd38d: Waiting 17 1a62205983b1: Waiting 18 f5304883c69c: Waiting 19 513626bd05cb: Waiting 20 752dcc4c3a04: Verifying Checksum 21 752dcc4c3a04: Download complete 22 513626bd05cb: Verifying Checksum 23 513626bd05cb: Download complete 24 45b42c59be33: Verifying Checksum 25 45b42c59be33: Download complete 26 5ccb476d6b8b: Verifying Checksum 27 5ccb476d6b8b: Download complete 28 081e89d42aee: Verifying Checksum 29 081e89d42aee: Download complete 30 f5304883c69c: Verifying Checksum 31 f5304883c69c: Download complete 32 30ca590bd38d: Verifying Checksum 33 30ca590bd38d: Download complete 34 1a62205983b1: Verifying Checksum 35 1a62205983b1: Download complete 36 45b42c59be33: Pull complete 37 752dcc4c3a04: Pull complete 38 5ccb476d6b8b: Pull complete 39 513626bd05cb: Pull complete 40 081e89d42aee: Pull complete 41 30ca590bd38d: Pull complete 42 1a62205983b1: Pull complete 43 f5304883c69c: Pull complete 44 Digest: sha256:0aabc099920afb17b14995cb0499b84116f1f4bee8f953f79cb4192d7912e71c 45 Status: Downloaded newer image for mcr.microsoft.com/dotnet/sdk:5.0.200 46 ---> 8749a0a2d944 47 Step 2/6 : COPY . ./ 48 ---> 859339815fcb 49 Step 3/6 : RUN dotnet publish ./src/ActionRunner/ActionRunner.csproj -c Release -o out --no-self-contained 50 ---> Running in 549868ca8c85 51 Microsoft (R) Build Engine version 16.9.0+57a23d249 for .NET 52 Copyright (C) Microsoft Corporation. All rights reserved. 53 54 Determining projects to restore... 55 Restored /src/MarkdownLinksVerifier/MarkdownLinksVerifier.csproj (in 1.31 sec). 56 Restored /src/ActionRunner/ActionRunner.csproj (in 1.31 sec). 57 MarkdownLinksVerifier -> /artifacts/bin/MarkdownLinksVerifier/Release/net5.0/MarkdownLinksVerifier.dll 58 ActionRunner -> /artifacts/bin/ActionRunner/Release/net5.0/ActionRunner.dll 59 ActionRunner -> /out/ 60 Removing intermediate container 549868ca8c85 61 ---> 572d9ba4b6a2 62 Step 4/6 : FROM mcr.microsoft.com/dotnet/runtime:5.0 63 5.0: Pulling from dotnet/runtime 64 a10c77af2613: Pulling fs layer 65 f4a871514cd9: Pulling fs layer 66 5701e2369bef: Pulling fs layer 67 73d52259e7cd: Pulling fs layer 68 73d52259e7cd: Waiting 69 a10c77af2613: Verifying Checksum 70 a10c77af2613: Download complete 71 5701e2369bef: Verifying Checksum 72 5701e2369bef: Download complete 73 f4a871514cd9: Verifying Checksum 74 f4a871514cd9: Download complete 75 73d52259e7cd: Verifying Checksum 76 73d52259e7cd: Download complete 77 a10c77af2613: Pull complete 78 f4a871514cd9: Pull complete 79 5701e2369bef: Pull complete 80 73d52259e7cd: Pull complete 81 Digest: sha256:5220716366f9a17eea218e739372ecccdf8c2a35878d405af8a1ba9ac27f6fbf 82 Status: Downloaded newer image for mcr.microsoft.com/dotnet/runtime:5.0 83 ---> cc1fa2ce069b 84 Step 5/6 : COPY --from=build /out . 85 ---> b4133c441b67 86 Step 6/6 : ENTRYPOINT [ "dotnet", "/ActionRunner.dll" ] 87 ---> Running in 7bab8dc87fc5 88 Removing intermediate container 7bab8dc87fc5 89 ---> ab9a0218014c 90 Successfully built ab9a0218014c 91 Successfully tagged e28490:1e8df9d204d94ca98dfb76c1134a548c ```