Skip to content

Commit

Permalink
Test entrypoint base using pwd.
Browse files Browse the repository at this point in the history
  • Loading branch information
cliffano committed Jul 15, 2024
1 parent 72008cd commit 6a3e3f0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ARG IMAGE=alpine:3.20
FROM ${IMAGE}
COPY entrypoint.sh /entrypoint.sh
COPY ${BASE_DIR}/entrypoint.sh /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]
4 changes: 2 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ runs:
- name: Build Docker image
shell: bash
run: |
docker build -f Dockerfile --build-arg IMAGE=${{ inputs.image }} -t local_image:8.8.8 .
docker build -f Dockerfile --build-arg IMAGE=${{ inputs.image }} --build-arg BASE_DIR=$PWD -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" -v "${PWD}/entrypoint.sh":/entrypoint.sh --name local_container local_image:8.8.8 "${{ inputs.command }}"
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 6a3e3f0

Please sign in to comment.