Skip to content

Commit

Permalink
Revert "Simplify to single docker run."
Browse files Browse the repository at this point in the history
This reverts commit 83dec19.
  • Loading branch information
cliffano committed Jul 15, 2024
1 parent 83dec19 commit 5e14846
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,11 @@ inputs:
runs:
using: 'composite'
steps:
- name: Verify
- name: Build Docker image
shell: bash
run: ls -al
run: |
docker build -f Dockerfile --build-arg IMAGE=${{ inputs.image }} -t local_image:8.8.8 .
- name: Run Docker container
shell: bash
run: |
docker run --rm -v /var/run/docker.sock:/var/run/docker.sock --entrypoint "${{ inputs.command }}" --name local_container "${{ inputs.image }}"
docker run --rm -v "/var/run/docker.sock":"/var/run/docker.sock" --name local_container local_image:8.8.8 "${{ inputs.command }}"

0 comments on commit 5e14846

Please sign in to comment.