Skip to content

Commit

Permalink
Change workflow action path pt 7.
Browse files Browse the repository at this point in the history
  • Loading branch information
Iainmon committed Jan 29, 2025
1 parent 0e70b96 commit 17bd2a1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
7 changes: 7 additions & 0 deletions .github/actions/hello-action/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
# Container image that runs your code
FROM alpine:3.10


RUN apt-get update && apt-get install -y curl


# Copies your code file from your action repository to the filesystem path `/` of the container
COPY entrypoint.sh /entrypoint.sh

RUN chmod +x /entrypoint.sh


# Code file to execute when the docker container starts up (`entrypoint.sh`)
ENTRYPOINT ["/entrypoint.sh"]
4 changes: 3 additions & 1 deletion .github/workflows/test-dockerfile.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
name: Test Docker Image Action (Hello Action)

on:
push:
branches: [ main ]
Expand All @@ -16,7 +18,7 @@ jobs:
uses: actions/checkout@v4

- name: Hello world action step
uses: ./../ # Uses an action in the root directory
uses: ./.github/actions/hello-action # Uses an action in the root directory
id: hello
with:
who-to-greet: 'Mona the Octocat'
Expand Down

0 comments on commit 17bd2a1

Please sign in to comment.