最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Concourse: Unable to refer the docker tag with a variable - Stack Overflow

programmeradmin1浏览0评论

How do I refer the docker image tag using the variable in the below Concourse YAML file ? The below YAML file is giving me the error "failed to interpolate task config: undefined vars: DOCKERBOX_VERSION"

jobs:
- name: build
  plan:
  - task: run-script
    config:
      platform: linux
      image_resource:
        type: docker-image
        source:
          repository: hubpany/group/concourse/dockerbox
          tag: ((DOCKERBOX_VERSION))
      params:
        DOCKERBOX_VERSION: 3.0.0
      run:
        path: sh
        args:
          - -exc
          - |
            echo "DOCKERBOX_VERSION is set to: $DOCKERBOX_VERSION"
            # Add your script commands here
            echo "Script completed."
发布评论

评论列表(0)

  1. 暂无评论