79640656

Date: 2025-05-27 14:15:33
Score: 1
Natty:
Report link
when:
  - event: 
    - push
    - cron
    - manual

steps:
  - name: build
    image: centos:latest
    commands:
      - echo "FOO=hello" >> envvars
      - echo "BAR=world" >> envvars

  - name: debug
    image: ubuntu:latest
    entrypoint: ["/bin/bash", "-c", "echo $CI_SCRIPT | base64 -d | /bin/bash -e"]
    commands:
      - source envvars
      - echo $FOO

labels:
  backend: docker
  hostname: gitea

woodpecker ci build step image

woodpecker ci step step image

also work in docker backend

I change entrypoint to avoid the /bin/sh: 17: source: not found Error

Reasons:
  • Probably link only (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: xtcc