Replies: 1 comment 2 replies
-
It seems like the Docker setup step is not successfully completing before the subsequent steps run. To ensure that steps execute sequentially, try the following: Ensure Correct Runner: Make sure the docker/setup-buildx-action is correctly setting up Docker before any other step tries to use it. Add docker/setup-docker explicitly: Before using Docker, explicitly install Docker in your runner using docker/setup-docker@v1 to guarantee it’s installed. Check Action Versions: Ensure that you are using the latest versions of actions (like docker/setup-buildx-action and newrelic-experimental/gha-new-relic-exporter). for example: jobs:
|
Beta Was this translation helpful? Give feedback.
-
Select Topic Area
Question
Body
Hello,
I have workflow file which while being ran doen't execute job steps sequentially.
Job looks like this:
jobs:
new-relic-exporter:
runs-on: xxx-ubuntu-runner
steps:
# Step 1: Install and Set Up Docker CLI
- name: Set Up Docker CLI
uses: docker/setup-buildx-action@v3
# Step 2: Verify Docker Installation (explicit validation step)
- name: Verify Docker Installation
run: |
docker --version || { echo "Docker CLI is not installed"; exit 1; }
# Step 3: Run New Relic Exporter (only after Docker setup is verified)
- name: Use New Relic Exporter
uses: newrelic-experimental/gha-new-relic-exporter@latest
So the runner I am using doesn't have docker installed, each time i execute this pipeline i get the error that docker command is not found.. although I have places this action to be the last in the list..
Beta Was this translation helpful? Give feedback.
All reactions