Git Product home page Git Product logo

Comments (9)

Ganeshrockz avatar Ganeshrockz commented on July 29, 2024 1

I have raised a PR to support both commas and new line as delimiters. @SamMousa and @uzi0espil, I believe this should address your use case

from k8s-deploy.

tgdfool2 avatar tgdfool2 commented on July 29, 2024 1

Thanks for the quick release @Ganeshrockz. Tested right now and it's working like a charm!

from k8s-deploy.

uzi0espil avatar uzi0espil commented on July 29, 2024

+1, I am working on a similar thing, but instead of setting a environment variable, I would get the list from shell script and assign it to a variable. then use that variable in k8s-deploy:

      - name: Get Manifests List
        id: get_manifests
        run: |
          chmod +x "${GITHUB_WORKSPACE}/.github/scripts/list-manifests.sh"
          echo ::set-output name=MANIFESTS::$("${GITHUB_WORKSPACE}/.github/scripts/list-manifests.sh")

      - name: Deploy to Cluster
        uses: azure/k8s-deploy@v1
        with:
          manifests: |
            ${{ steps.get_manifests.outputs.MANIFESTS }}
       ....

The output of list-manifests joins the array of manifests by delimiter \n.

echo ${arrManifests[@]} | tr ' ' '\n'

But it still doesn't work.

from k8s-deploy.

tgdfool2 avatar tgdfool2 commented on July 29, 2024

Thanks for having implemented and merged the fix.

In the meantime, while the code is not yet released, what is the best way to use it?

from k8s-deploy.

SamMousa avatar SamMousa commented on July 29, 2024

Can't you just use @master as a version or something?

from k8s-deploy.

tgdfool2 avatar tgdfool2 commented on July 29, 2024

Unfortunately, main branch doesn't contain the lib/ directory:

image

from k8s-deploy.

Ganeshrockz avatar Ganeshrockz commented on July 29, 2024

Apologies for the delay. I forgot to port the fix to releases branch. Once I do that you can access the fix with the v1 tag. I am on it now

from k8s-deploy.

tgdfool2 avatar tgdfool2 commented on July 29, 2024

Great, thanks a lot. Please let me know once done and I'll give a try.

from k8s-deploy.

Ganeshrockz avatar Ganeshrockz commented on July 29, 2024

@tgdfool2 Can you try using the v1 tag now?

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.