Category "yaml"

.gitlab-ci.yml Syntax Error

I'm working with the following .gitlab-ci.yml config: image: node:latest stages: - build - test build: stage: build script: - npm install test

Bitbucket Pipelines hangs when testing a Nuxt app with Cypress

I have a Nuxt app that I want to test with Cypress in CI. I've seen in the Cypress documentation that you have to install some third-party package to wait for t

How to merge rules on a GitLab CI Job

Let's suppose I have this hidden "base" job. .base_job: rules: - if: "$CI_COMMIT_TAG" when: never - if: '$CI_PIPELINE_SOURCE == "web"' I'd like

Python 3.3: Convert XML to YAML

I'm trying to convert XML files to YAML using Python 3.3. This is my code: #! /etc/python3 test_filename_input = './reference-conversions/wikipedia-example.xm

In Azure yaml, how to use local variables, conditional variables and template variables together?

Consider the following scenario, on where a job (or stage), needs to use some local, conditional and template variables: # (1) Local for the yaml file variables

Does application.yml support environment variables?

I tried using env variables in my application.yml configration like: spring: main: show_banner: false --- spring: profiles: production server: addr

Docker-Compose file has yaml.scanner.ScannerError

compose.yml file, which looks like this: version: '2' services: discovery-microservice: build: discovery-microservice context: /discovery-microserv

How to install php yaml on CentOs?

On the start I was getting this error: Call to undefined function yaml_parse_file() I have tried everything what I have found over google: yum install libya

Bamboo: Reuse same yml specs in multiple projects

I'm using Atlassian Bamboo 7.1.1. I'm creating pipelines as a code using YAML. I have one git repository with a YAML specs to reuse in multiples pipelines. Let'

Use variables in Azure DevOps Pipeline templates

We have a collection of Azure DevOps pipeline templates that we re-use across multiple repositories. Therefore we wanted to have a file that contains variables

YAML equivalent of array of objects in JSON

I have a JSON array of objects that I'm trying to convert to YAML. {"AAPL": [ { "shares": -75.088, "date": "11/27/2015" }, { "shares": 75.08

Java.io.FileNotFoundException : YAML file does not exists

When I am submitting the spark job from terminal I am getting below error that file does not exists. Although I have already placed config file to my local. spa

Repository Name as a GitHub Action environment variable?

How would you get the repository name (not the user or organization) as an environment variable in GitHub Actions? I found github.repository but that contains t

Can't set Password for Postgres using docker-compose

I am not able to set Password for Postgres using Docker-compose. Postgres is loading without password and with the default user name "postgres", non of the envi

Mac cli to convert yaml to json

is there a quick way to convert bunch of yaml files to json files. I looked at yaml2json and it is not working (throws some exception) Thanks

In YAML how can I comment a part of a line?

In YAML how can I comment a part of a line? for example: - name: "JAVA_OPTIONS" value: "-Dconfig.dir.path=$(CONF_PATH) -Dpoint.dir.path=$(POINT_PATH)- Xms256m

How to update YAML file without loss of comments and formatting / YAML automatic refactoring in Python

I would like to update YAML file values in Python without losing formatting and comments in Python. For example I would like to tranform YAML file value: 456

How to validate openapi 3.0.0 yaml spec?

I have a yaml specification that has been updated from swagger 2.0 to openapi 3.0.0. The file itself is about 7,000 lines so it is challenging to validate by h

Preserving quotes in ruamel.yaml

I'm using ruamel.yaml for modifying a YAML file. My requirement is to add a value for an existing key, preserving everything else including the order. I got it

How to have multiple object types in a single openshift yaml template?

Here is the sample template for single PersistentVolumeClaim with name : claim1 apiVersion: "v1" kind: "PersistentVolumeClaim" metadata: name: "claim1" spec: