GithubHelp home page GithubHelp logo

jzweifel / gatsby-cli-github-action Goto Github PK

View Code? Open in Web Editor NEW
47.0 47.0 22.0 27 KB

GitHub Action wrapping the Gatsby CLI

License: MIT License

Ruby 1.56% Dockerfile 32.40% Shell 66.04%
gatsby-cli github-actions

gatsby-cli-github-action's Introduction

Hi there ๐Ÿ‘‹

gatsby-cli-github-action's People

Contributors

danylevskyi avatar dlanthier-youitv avatar havef avatar jzweifel avatar muinmomin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

gatsby-cli-github-action's Issues

Other build error

Error: Couldn't find any versions for "gatsby-plugin-typescript" that matches "^2.4.11" at MessageError.ExtendableBuiltin (/opt/yarn-v1.22.4/lib/cli.js:721:66) at new MessageError (/opt/yarn-v1.22.4/lib/cli.js:750:123) at Function.<anonymous> (/opt/yarn-v1.22.4/lib/cli.js:50545:13) at Generator.next (<anonymous>) at step (/opt/yarn-v1.22.4/lib/cli.js:310:30) at /opt/yarn-v1.22.4/lib/cli.js:321:13 at process._tickCallback (internal/process/next_tick.js:68:7) error There was a problem loading the local build command. Gatsby may not be installed in your site's "node_modules" directory. Perhaps you need to run "npm install"? You might need to delete your "package-lock.json" as well.

Is it because of an update of the gatsby-cli? The build runs fine on my local system with latest gatsby-cli

Error in building

Seeing the error below:

Original error:
/github/workspace/blog/node_modules/cwebp-bin/vendor/cwebp: error while loading shared libraries: libGL.so.1: cannot open shared object file: No such file or directory

  WorkerError: Processing /github/workspace/blog/content/authors/avatars/team.png failed

  Original error:
  /github/workspace/blog/node_modules/cwebp-bin/vendor/cwebp: error while loading shared libraries: libGL.so.1: cannot open shared object file: No such file or directory

I've verified that team.png file exists in the repo, but based on the last error, I'm suspecting it might have to do with the fact that my node_modules directory isn't checked in. Is this really needed? Any way around this?

Build failing

##[error]Docker build failed with exit code 1 lots of errors about packages that can't be found on the npm registry...

How do I add env variables?

I need to add some environment variables that the gatsby-source-wordpress package needs or the build fails.

How do I set them up?

Thanks.

Node module need to update

failed building this image. this is the stacktrace. is this github action still maintained?

warning gatsby-cli > [email protected]: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
  warning gatsby-cli > gatsby-recipes > [email protected]: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
  warning gatsby-cli > gatsby-recipes > @hapi/[email protected]: Switch to 'npm install joi'
  warning gatsby-cli > gatsby-recipes > @hapi/[email protected]: This version has been deprecated and is no longer supported or maintained
  warning gatsby-cli > gatsby-recipes > @hapi/joi > @hapi/[email protected]: This version has been deprecated and is no longer supported or maintained
  warning gatsby-cli > gatsby-recipes > better-queue > [email protected]: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
  warning gatsby-cli > gatsby-recipes > @hapi/joi > @hapi/[email protected]: This version has been deprecated and is no longer supported or maintained
  warning gatsby-cli > gatsby-recipes > @hapi/joi > @hapi/topo > @hapi/[email protected]: This version has been deprecated and is no longer supported or maintained
  warning gatsby-cli > gatsby-recipes > @hapi/joi > @hapi/[email protected]: Moved to 'npm install @sideway/address'
  warning gatsby-cli > gatsby-recipes > @hapi/joi > @hapi/[email protected]: This version has been deprecated and is no longer supported or maintained
  [2/4] Fetching packages...
  error [email protected]: The engine "node" is incompatible with this module. Expected version ">=14.15.0". Got "12.22.8"
  error Found incompatible module.

HTTP proxy support

HTTP proxy does not seem to be supported at the moment. Getting the following error:

Build container for action use: '/runner/_work/_actions/jzweifel/gatsby-cli-github-action/master/Dockerfile'.
  /usr/local/bin/docker build -t 60e226:dbbcc87c8e7d40b4867a5be98d3e8cfa -f "/runner/_work/_actions/jzweifel/gatsby-cli-github-action/master/Dockerfile" "/runner/_work/_actions/jzweifel/gatsby-cli-github-action/master"
  Sending build context to Docker daemon  76.29kB
  
  Step 1/14 : FROM node:10-slim
...
  Status: Downloaded newer image for node:10-slim
   ---> 50b20520e882
  Step 2/14 : LABEL version="1.0.0"
   ---> Running in 4f440084cb01
  Removing intermediate container 4f440084cb01
   ---> 6c464c5383b9
  Step 3/14 : LABEL "repository"="http://github.com/jzweifel/gatsby-cli-github-action"
   ---> Running in 76e072f4ae5b
  Removing intermediate container 76e072f4ae5b
   ---> 88b308d8b2fd
  Step 4/14 : LABEL "homepage"="http://github.com/jzweifel"
   ---> Running in 2387e1ce1983
  Removing intermediate container 2387e1ce1983
   ---> 3ede55b09d66
  Step 5/14 : LABEL "maintainer"="Jacob Zweifel <[email protected]>"
   ---> Running in 63acb5674970
  Removing intermediate container 63acb5674970
   ---> e2e59677f4b1
  Step 6/14 : LABEL "com.github.actions.name"="Github Action for Gatsby CLI"
   ---> Running in 727d05686289
  Removing intermediate container 727d05686289
   ---> b4d956499620
  Step 7/14 : LABEL "com.github.actions.description"="Wraps the Gatsby CLI to enable common Gatsby commands."
   ---> Running in 6e164c110a93
  Removing intermediate container 6e164c110a93
   ---> 86e49e8f0069
  Step 8/14 : LABEL "com.github.actions.icon"="package"
   ---> Running in ed147aa2abb0
  Removing intermediate container ed147aa2abb0
   ---> c6af58d312d2
  Step 9/14 : LABEL "com.github.actions.color"="purple"
   ---> Running in 67fcbb529305
  Removing intermediate container 67fcbb529305
   ---> 576e0d592dba
  Step 10/14 : COPY LICENSE README.md THIRD_PARTY_NOTICE.md /
   ---> cbe240243cf6
  Step 11/14 : RUN yarn global add gatsby-cli
   ---> Running in fa0f40fdec6c
  yarn global v1.22.5
  [1/4] Resolving packages...
  info There appears to be trouble with your network connection. Retrying...
  info There appears to be trouble with your network connection. Retrying...
  info There appears to be trouble with your network connection. Retrying...
  Error: The operation was canceled.

The runner (self-hosted) has a proxy configured:

Runner is running behind proxy server 'http://proxy.xxx.com:3128' for all HTTP requests.
Runner is running behind proxy server 'http://proxy.xxx.com:3128' for all HTTPS requests.

and I also tried adding explicit environment variables:

      - name: Build Gatsby Site
        uses: jzweifel/gatsby-cli-github-action@master
        env:
          https_proxy: http://proxy.xxx.com:3128
        with:
          gatsby-arg: build

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.