actions-hub / gcloud

GitHub Action for interacting with Google Cloud Platform (GCP)
https://github.com/marketplace/actions/google-cloud-platform-gcp-cli-gcloud
MIT License
232 stars 27 forks source link

Actions fails with error: app.yaml does not exist #1

Closed jr-cologne closed 5 years ago

jr-cologne commented 5 years ago

Hi @exelban,

I just discovered your Action and encountered the following error when trying it out for the first time:

ERROR: (gcloud.app.deploy) [/github/workspace/app.yaml] does not exist.

As you can see in my workflow file, I'm using your Action in order to deploy my application to Google App Engine. Here's the log of the job which failed: click

Unfortunately, I don't really have an idea what all the docker stuff means, but if I would need to guess, it might have something to do with the files from the repository not being synced to the docker container correctly.

Do you have any idea what the issue might be? I'm wondering whether this is a bug in your Action or just me failing to use it correctly.

Thank you in advance and best regards, @jr-cologne

exelban commented 5 years ago

@jr-cologne thanks, i will take a look for this today

exelban commented 5 years ago

@jr-cologne I'm guessing it because your project file is not available inside the container. Try to add this step before gcloud:

- uses: actions/checkout@v1

This action will copy your repo files to the container.

exelban commented 5 years ago

@jr-cologne try this one:

  deploy:
    needs: set-env-vars
    runs-on: ubuntu-latest

    steps:
      - uses: actions/checkout@v1
      - uses: exelban/gcloud@master
        env:
          PROJECT_ID: ${{secrets.GCLOUD_PROJECT_ID}}
          APPLICATION_CREDENTIALS: ${{secrets.GOOGLE_APPLICATION_CREDENTIALS}}
        with:
          args: app deploy app.yaml cron.yaml
jr-cologne commented 5 years ago

Hi @exelban,

thank you very much for this quick help. It works now thanks to adding the checkout action!

I am going to close this issue.

Have a nice evening!

Best regards, @jr-cologne