Skip to content

Commit c6af51d

Browse files
committed
Update GitHub Actions workflow to dynamically set DOCKER_HOST output
- Added a step to set up the DOCKER_HOST as an output variable, improving flexibility in the workflow. - Updated the Vector Action step to reference the new output, enhancing maintainability and clarity.
1 parent 84c888e commit c6af51d

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

.github/workflows/gbf_vector.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,15 @@ jobs:
3333
brew install colima
3434
colima start
3535
36+
- name: Set up DOCKER_HOST as output
37+
id: docker-env
38+
run: |
39+
echo "docker_host=unix://${HOME}/.colima/default/docker.sock" >> $GITHUB_OUTPUT
40+
3641
- name: Run Vector Action
3742
uses: ./
3843
env:
39-
DOCKER_HOST: unix://${HOME}/.colima/default/docker.sock
44+
DOCKER_HOST: ${{ steps.docker-env.outputs.docker_host }}
4045
with:
4146
single-action: vector_action
4247
debug: ${{ vars.DEBUG }}

0 commit comments

Comments
 (0)