semaphoreci / agent

Agent for running Semaphore 2.0 jobs
Apache License 2.0
17 stars 8 forks source link

Entrypoint override doesn't work #251

Open abitrolly opened 1 week ago

abitrolly commented 1 week ago

Overriding entrypoint doesn't work.

Documentation https://docs.semaphoreci.com/reference/pipeline-yaml-reference/#containers doesn't have an explicit example, and I try the following syntax, which should execute ls -la in /bin/bash. /bin/bash doesn't happen, and instead default command is executed.

version: v1.0
name: Build snap in Docker
agent:
  machine:
    type: f1-standard-2
  containers:
    - name: main
      image: 'yakshaveinc/snapcraft:core24' # Your primary container where commands are run
      entrypoint: /bin/bash

blocks:
  - name: snap build and push
    task:
      jobs:
        - name: Build snap
          commands:
            - ls -la
            - cd snapcrafting/yakshaveinc
lucianoliberti commented 1 week ago

@abitrolly thanks for reporting this, we'll assess it.