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

curl: command not found #127

Closed
daniele-sarnari-blinkoo opened this issue Dec 18, 2023 · 3 comments
Closed

curl: command not found #127

daniele-sarnari-blinkoo opened this issue Dec 18, 2023 · 3 comments
Assignees
Labels
question Requiring some clarification

Comments

@daniele-sarnari-blinkoo

When i tried to use curl inside of azure/CLI@v1 step i got curl: command not found.
In November the pipeline was fully working so something broke on github side or azure side.

I digged in until i discovered this:

name: Deploy to Azure Web App (Development)

on:
  push:
    branches:
      - "development"
  workflow_dispatch:

jobs:

  ...

  deploy:
    runs-on: ubuntu-latest
    needs: build

    steps:

      ...

      - name: Check curl installation
        run: |
          which curl
          curl --version

      - name: WebApp Deploy
        uses: azure/CLI@v1
        with:
          inlineScript: |
            /usr/bin/curl --version

/usr/bin/curl: No such file or directory
image

How is that possible?

Thanks

@daniele-sarnari-blinkoo
Copy link
Author

Installing curl dependency fixed, but on Novembre that was not necessary
apk add curl

Did azure removed that from the docker image used by this action?

@MoChilia
Copy link
Member

Hi @daniele-sarnari-blinkoo,
Azure cli has removed package curl in docker image since 2.54.0 to reduce size, see Azure/azure-cli#27567. If it is necessary for you to use curl in azure/cli action, please pin the azcliversion to 2.53.1. Or you may install it in inlinescript manually.

@MoChilia MoChilia added question Requiring some clarification and removed need-to-triage Requires investigation labels Dec 19, 2023
@daniele-sarnari-blinkoo
Copy link
Author

Ok, many thanks @MoChilia

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Requiring some clarification
Projects
None yet
Development

No branches or pull requests

2 participants