Coder Social home page Coder Social logo

Comments (1)

anna-geller avatar anna-geller commented on July 4, 2024

Hey, I have great news, we've recently significantly improved the Git integration and your challenge will be solved in 0.17.0 release planned to launch on 4th of June. You can already test those new tasks by switching your docker image to develop: kestra/kestra:develop-full

Once this new task #2461 is added, you'll be able to do:

id: example
namespace: dev

inputs:
- id: event
  type: JSON

tasks:
  - id: scripts
    type: io.kestra.plugin.core.flow.WorkingDirectory
    tasks:
      - id: generateFlow
        type: io.kestra.plugin.scripts.python.Commands
        outputFiles:
          - "{{ inputs.event.file_name }}"
        beforeCommands:
          - pip install pyyaml
        namespaceFiles:
          enabled: true
        commands:
          - python utilities/scripts/generate_flow.py '{{inputs.event}}' utilities/flow_templates/run_dbt_tags.yml    

      - id: upload_to_namespace
        type: io.kestra.plugin.core.namespace.Files
        action: UPLOAD 
        namespace: dev
        files: # list of RegEx strings or specific file paths
          - "{{ inputs.event.file_name }}"

  - id: git_push
    type: io.kestra.plugin.git.PushNamespaceFiles
    files: 
      - "{{ inputs.event.file_name }}"
    gitDirectory: _flows
    url: https://github.com/kestra-io/scripts 
    username: git_username 
    password: "{{ secret('GITHUB_ACCESS_TOKEN') }}"
    branch: dev 

from kestra.

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.