Coder Social home page Coder Social logo

Bug: manifests path set using Environment variables throw error "no such file or directory, lstat '$FOLDER/k8s/deploy" about k8s-deploy HOT 3 CLOSED

ezYakaEagle442 avatar ezYakaEagle442 commented on June 2, 2024
Bug: manifests path set using Environment variables throw error "no such file or directory, lstat '$FOLDER/k8s/deploy"

from k8s-deploy.

Comments (3)

ezYakaEagle442 avatar ezYakaEagle442 commented on June 2, 2024

The error does not happen when I hard code the Manifests paths :

- name: Deploy Manifests to AKS
  uses: Azure/k8s-deploy@v4
  with:
    namespace: ${{ env.PETCLINIC_NAMESPACE }}
    manifests: |
        spring-petclinic-config-server/k8s/deploy
        spring-petclinic-vets-service/k8s/deploy
        spring-petclinic-customers-service/k8s/deploy
        spring-petclinic-visits-service/k8s/deploy

from k8s-deploy.

OliverMKing avatar OliverMKing commented on June 2, 2024

This syntax is not valid in GitHub workflows. This wouldn't work with any action.

You should be using something like

- run: echo ::set-output name=server_folder::${{ env.PRJ_PREFIX }}-${{ env.CONFIG_SERVER }}
   id: variables
- name: Deploy Manifests
  uses: Azure/k8s-deploy@v4
  with:
    namespace: ${{ env.PETCLINIC_NAMESPACE }}
    manifests: |
        ${{ steps.variables.outputs.server_folder }}/k8s/deploy

Here's a related discussion with more examples.

from k8s-deploy.

OliverMKing avatar OliverMKing commented on June 2, 2024

Going to close this now. Feel free to reopen.

from k8s-deploy.

Related Issues (20)

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.