Skip to content

Questions & Answers

Note

In this tutorial, please replace the following values:

  • ZONE_NAME with the name of the administrative zone (it starts with ocb-).
  • TEAM_NAME with the name of the team used for the deployment.

How to increase the memory limit on a task?

Click to open

You can configure the memory limit in your pipeline by adding the container_limits.memory attribute:

- task: some-task
  config:
    container_limits:
      memory: 1073741824 # = 1GB

How to use Gitea repository?

Click to open
resources:
  - name: git-master
    type: git
    icon: git
    source:
      uri: https://git.ZONE_NAME.caascad.com/myorg/myrepo.git
      username: ((git-username))
      password: ((git-password))
      branch: master

How to use a private docker image in my task?

Click to open
- task: hello-world-task
  config:
    platform: linux
    image_resource:
      type: registry-image
      source:
        repository: docker-registry.ZONE_NAME.caascad.com/myorg/myimage
        username: replace-with-username
        password: replace-with-password
        tag: latest
    run:
      path: ash
      args:
        - -c
        - echo "Hello world"

How to use the docker resource with private repository?

Click to open
resources:
  - name: my-image
    type: registry-image
    icon: docker
    source:
      repository: docker-registry.ZONE_NAME.caascad.com/myorg/myimage
      username: replace-with-username
      password: replace-with-password
      tag: latest