Skip to content

Composite docker action #25623

Answered by ChristopherHX
fortierq asked this question in Actions
Sep 11, 2021 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

Can I add something like this below (which is what I use in my standalone action) ?

No as far as I know this exists only on Job level.

However the runner mounts your workspace (with all changes of your previous steps) into the docker action so you should be able to to replace run with uses: docker:// without a custom docker action.

runs:
  using: "composite"
  steps:
    - uses: actions/checkout@v2
    - uses: jitterbit/get-changed-files@v1
    - name: Explain why this job ran
      uses: docker://# my image
      with:
        entrypoint:  # command executable that need to be run in a container
        args:  # args of the command that need to be run in a container

See Workflow syntax…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@kyrylogy
Comment options

Answer selected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
3 participants