Giter Site home page Giter Site logo

arm's People

Contributors

akshayabd avatar christosarvanitis avatar cristhian-castaneda avatar ethanfrogers avatar inverse avatar jeffhart-armory avatar jossuecito avatar justinrlee avatar karlomendozaarmory avatar nemesisosorio avatar oscarmichelh avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

arm's Issues

Version not being printed

When running arm version version number is missing

malachi@pulsar-work Downloads $ ./arm-2.1.1-linux-amd64 version
rainmaker  (-)

Error while passing global variable as a parameter to function

I am currently trying to pass a global variable named application_name to the triggerApp function. Arm cli gives me the following error-

ERRO[0000] Error parsing value {{var application}}: invalid character '{' looking for beginning of object key string

Unable to build from src

I'm unable to build from source

malachi@pulsar arm-2.1.1 $ GOOS=linux go build -o arm_linux_amd64 
go: github.com/armory-io/[email protected]: invalid version: git fetch -f origin refs/heads/*:refs/heads/* refs/tags/*:refs/tags/* in /home/malachi/go/pkg/mod/cache/vcs/91972d041389a34289ac7228c88e01406095cb4c789d5958e54d250156fbf11c: exit status 128:
	fatal: could not read Username for 'https://github.com': terminal prompts disabled

I presume because some of the vendor dependencies are private?

YAML dinghyfiles are unsupported

Dinghy supports YAML (and HCL) templates, but the arm CLI doesn't - it assumes all input is JSON.

Using latest master, I rendered examples/dinghyfile_basic into YAML and tried to run it:

---
application: helloworldapp
pipelines:
- application: helloworldapp
  name: my-pipeline-name
  stages:
  - name: one
    type: wait
    waitTime: 10
$ ./arm dinghy render examples/dinghyfile_yaml
INFO[2020-10-27 14:47:28] Checking dinghyfile
INFO[2020-10-27 14:47:28] Parsing dinghyfile
ERRO[2020-10-27 14:47:28] Failed to parse global vars:
 ---
application: helloworldapp
pipelines:
- application: helloworldapp
  name: my-pipeline-name
  stages:
  - name: one
    type: wait
    waitTime: 10  arm-cli-test=
ERRO[2020-10-27 14:47:28] Parsing dinghyfile failed: invalid character '-' in numeric literal

pipelineID function runtime error

When using the pipelineID function i'm getting the following error:

Error: template: dinghy-render:165:26: executing "dinghy-render" at <pipelineID "test123" "Bake">: error calling pipelineID: runtime error: invalid memory address or nil pointer dereference  arm-cli-test=
ERRO[2020-06-17 10:24:53] Parsing dinghyfile failed: template: dinghy-render:165:26: executing "dinghy-render" at <pipelineID "test123" "Bake">: error calling pipelineID: runtime error: invalid memory address or nil pointer dereference 

How i used it

"triggers": [
        {
          "application": "{{ var "application" }}",
          "enabled": true,
          "pipeline": "{{ pipelineID "test123" "Bake" }}",
          "runAsUser": "[email protected]",
          "status": [
            "successful"
          ],
          "type": "pipeline"
        }
      ]

dinghyfile_list_range and dinghyfile_dict_range examples fail

Just checked out the repo, no modifications. Both the dinghyfile_list_range and dinghyfile_dict_range examples fail. I'm running with the v2.1.1 binary.

$ arm-2.1.1-darwin-amd64 dinghy render ./examples/json/dinghyfile_list_range --modules ./examples/json/modules
INFO[2021-05-20 14:07:17] [Checking dinghyfile]
INFO[2021-05-20 14:07:17] [Parsing dinghyfile]
ERRO[2021-05-20 14:07:17] Failed to parse global vars:
 [{
  "application": "listrangeexample",
  "pipelines": [
    {
      "name": "Loop Example",
      "application": "listrangeexample",
      "stages": [
        {{ $listdev := list "10" "dev" }}
        {{ $listqa := list "20" "qa" }}
        {{ $myenvs := list $listdev $listqa }}
        {{ $count := 1 }}
        {{ range $myenvs }}
            {{ module "stage.minimal.wait.module" "waitname" ( index . 1 ) "waitTime" ( index . 0 ) }}
            {{ if ne $count (len $myenvs) }}
                {{ $count = add $count 1 }}
                ,
            {{ end }}
        {{ end }}
      ]
    }
  ]
}
]
ERRO[2021-05-20 14:07:17] Parsing dinghyfile failed: [invalid character '{' looking for beginning of object key string]
arm-2.1.1-darwin-amd64 dinghy render ./examples/json/dinghyfile_dict_range --modules ./examples/json/modules
INFO[2021-05-20 14:09:14] [Checking dinghyfile]
INFO[2021-05-20 14:09:14] [Parsing dinghyfile]
ERRO[2021-05-20 14:09:14] Failed to parse global vars:
 [{
  "application": "maprangeexample",
  "pipelines": [
    {
      "name": "Loop Example",
      "application": "maprangeexample",
      "stages": [
        {{ $dictdev := dict "waitTime" "10" "name" "dev" }}
        {{ $dictqa := dict "waitTime" "20" "name" "qa" }}
        {{ $myenvs := list $dictdev $dictqa }}
        {{ $count := 1 }}
        {{ range $myenvs }}
            {{ module "stage.minimal.wait.module" "waitname" ( get . "name" ) "waitTime" ( get . "waitTime" ) }}
            {{ if ne $count (len $myenvs) }}
                {{ $count = add $count 1 }}
                ,
            {{ end }}
        {{ end }}
      ]
    }
  ]
}]
ERRO[2021-05-20 14:09:14] Parsing dinghyfile failed: [invalid character '{' looking for beginning of object key string]

not possible to build this repo without dinghy source?

running go get from within the working copy yields:

# cd .; git clone https://github.com/armory-io/dinghy /Users/me/.go/src/github.com/armory-io/dinghy
Cloning into '/Users/me/.go/src/github.com/armory-io/dinghy'...
remote: Repository not found.
fatal: repository 'https://github.com/armory-io/dinghy/' not found
package github.com/armory-io/dinghy/pkg/dinghyfile: exit status 128
package github.com/armory-io/dinghy/pkg/cache: cannot find package "github.com/armory-io/dinghy/pkg/cache" in any of:
        /usr/local/opt/go/libexec/src/github.com/armory-io/dinghy/pkg/cache (from $GOROOT)
        /Users/me/.go/src/github.com/armory-io/dinghy/pkg/cache (from $GOPATH)

Feature Request: Needed windows binary in releases.

As most of the corporate environment uses windows workstation it would be good to have a windows binary. we can download source and cross compile for windows but most of the corporate environments is behind proxy and its really hard to download all the dependency go packages.

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.