Giter Site home page Giter Site logo

ic-deploy-action's People

Contributors

samuelea 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

Watchers

 avatar  avatar  avatar  avatar  avatar

ic-deploy-action's Issues

No such file or directory (os error 2)

dfx version: 0.9.3
laptop: mac M1 (12.3.1)

while using the fleekhq ic-deploy action on my ICP project. I kept encountering the following error No such file or directory (os error 2) as shown in the image below;

Screen Shot 2022-04-26 at 8 01 24 PM

my deploy.yaml looked just like the current README on this project;

on: [push]

jobs:
  test-deploy:
    runs-on: ubuntu-latest
    name: A job to deploy canisters to the IC
    steps:
      - uses: actions/checkout@v2
      - name: Install dependencies
        run: npm install
      - name: Deploy canisters
        id: deploy
        uses: fleekhq/ic-deploy-action@master
        with:
          identity: ${{ secrets.DFX_IDENTITY }}
          wallets: ${{ secrets.DFX_WALLETS }}
      - name: Show success message
        run: echo success!

Verified my canister source paths were correct, and the dist folder and .dfx folders existed.

So i decided to fork this repo and try replicating the issue locally to find out whats going on.

When trying to replicate it locally, I ran into a different error upon getting to the dfx deploy part, The command '"npm" "run" "build"' failed with exit status 'exit status: 127'..

Screen Shot 2022-04-26 at 8 33 09 PM

It wasn't until i added npm and rsync on the image that i was able to deploy it to IC from my local.
Below is the modified Dockerfile I used.

# switched from aarch to amd64 bc mac m1 was giving me issues about that arch type
FROM amd64/ubuntu:focal

ENV NPM_CONFIG_PREFIX=/home/node/.npm-global
ENV PATH="/home/node/.npm-global/bin:$PATH"
ENV DEBIAN_FRONTEND=noninteractive                     # used to have npm install non-interactive

USER node

COPY dfx-install.sh /home/dfx-install.sh
COPY entrypoint.sh /home/node/entrypoint.sh

USER root

RUN apt-get update && apt-get install -y curl \
  build-essential \
  libc6-dev \
  rsync \
  npm

RUN ["chmod", "+x", "/home/dfx-install.sh"]

RUN ["sh", "-m", "/home/dfx-install.sh"]

RUN ["chmod", "+x", "/home/node/entrypoint.sh"]

ENTRYPOINT ["/home/node/entrypoint.sh"]

Then i added my fork as apart of my github action

on: [push]

jobs:
  test-deploy:
    runs-on: ubuntu-latest
    name: A job to deploy canisters to the IC
    steps:
      - uses: actions/checkout@v2
      - name: Install dependencies
        run: npm install
      - name: Deploy canisters
        id: deploy
        uses: gespi1/ic-deploy-action@master
        with:
          identity: ${{ secrets.DFX_IDENTITY }}
          wallets: ${{ secrets.DFX_WALLETS }}
      - name: Show success message
        run: echo success!

and WAH-LA the error I was getting originally is gone.
Seems like having npm and rsync installed as part of the Dockerfile solved my issue.

Not certain of the root cause and if others are having the same issue but if you are here ya go.

Unable to install more recent dfx versions

Hi - we in the OpenChat team are trying to use this and we need to use a different dfx version. If we supply the required DFX_VERSION env var e.g. 0.9.0 it still falls back to 0.8.4.

Perhaps related to the following error that we see in the logs?

image

Do you have any idea what's causing this?

Otherwise it works perfectly!

Deployment with --no-wallet option?

I'm using the Dank XTC token to pay for canister cycles. https://dank.ooo/
When I deploy to the IC, I use this command: dfx deploy --network ic --no-wallet
--no-wallet is needed, because there is no canister wallet

Is it possible to supply the option --no-wallet using this GitHub Action>?

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.