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

pulling the action image is slow #44

Closed
staabm opened this issue Aug 5, 2022 · 1 comment
Closed

pulling the action image is slow #44

staabm opened this issue Aug 5, 2022 · 1 comment

Comments

@staabm
Copy link

staabm commented Aug 5, 2022

as can be seen in e.g. https://github.com/staabm/staabm.github.io/runs/7689001778?check_suite_focus=true pulling the ghcr.io/actions/jekyll-build-pages:v1.0.4 takes most of the time of the action to run.

I guess this is related to the number of layers this docker container has:

  /usr/bin/docker pull ghcr.io/actions/jekyll-build-pages:v1.0.4
  v1.0.4: Pulling from actions/jekyll-build-pages
  eff15d958d66: Pulling fs layer
  923e91ae3a1b: Pulling fs layer
  2aa5d3a4a151: Pulling fs layer
  bc64adf2d0b2: Pulling fs layer
  bfc5cca7d80e: Pulling fs layer
  61b6e3e25463: Pulling fs layer
  7c62fb63f605: Pulling fs layer
  0f68cc81f8f6: Pulling fs layer
  09f325326117: Pulling fs layer
  a73a0a50c4db: Pulling fs layer
  bc64adf2d0b2: Waiting
  bfc5cca7d80e: Waiting
  61b6e3e25463: Waiting
  7c62fb63f605: Waiting
  0f68cc81f8f6: Waiting
  09f325326117: Waiting
  a73a0a50c4db: Waiting
  2aa5d3a4a151: Verifying Checksum
  2aa5d3a4a151: Download complete
  923e91ae3a1b: Verifying Checksum
  923e91ae3a1b: Download complete
  eff15d958d66: Verifying Checksum
  eff15d958d66: Download complete
  bfc5cca7d80e: Verifying Checksum
  bfc5cca7d80e: Download complete
  bc64adf2d0b2: Verifying Checksum
  bc64adf2d0b2: Download complete
  7c62fb63f605: Verifying Checksum
  7c62fb63f605: Download complete
  09f325326117: Verifying Checksum
  09f325326117: Download complete
  0f68cc81f8f6: Verifying Checksum
  0f68cc81f8f6: Download complete
  a73a0a50c4db: Verifying Checksum
  a73a0a50c4db: Download complete
  61b6e3e25463: Verifying Checksum
  61b6e3e25463: Download complete
  eff15d958d66: Pull complete
  923e91ae3a1b: Pull complete
  2aa5d3a4a151: Pull complete
  bc64adf2d0b2: Pull complete
  bfc5cca7d80e: Pull complete
  61b6e3e25463: Pull complete
  7c62fb63f605: Pull complete
  0f68cc81f8f6: Pull complete
  09f325326117: Pull complete
  a73a0a50c4db: Pull complete
  Digest: sha256:e56d7e4c5ac45aa2934b1d535f4c66769a442ef6538c7948f8b4e3b2950fd7b4
  Status: Downloaded newer image for ghcr.io/actions/jekyll-build-pages:v1.0.4
  ghcr.io/actions/jekyll-build-pages:v1.0.4

would it be possible to reduce the numer of layers to speedup the built?

@yoannchaudet
Copy link
Collaborator

Reducing the layers would not speed up the pull of the image. And any changes we make means we would break the potential caching of top layers.

You could give a try at https://github.blog/changelog/2022-07-27-github-pages-custom-github-actions-workflows-beta/ and use especially this starter workflow which does not rely on Docker. Instead it pulls the gems at build time and leverage cache.

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

No branches or pull requests

2 participants