Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Entrypoint override doesn't work #251

Open
abitrolly opened this issue Sep 29, 2024 · 1 comment
Open

Entrypoint override doesn't work #251

abitrolly opened this issue Sep 29, 2024 · 1 comment

Comments

@abitrolly
Copy link

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants