Skip to content

Create blank.yml#2

Open
adamrabbani wants to merge 2 commits into
masterfrom
first-action
Open

Create blank.yml#2
adamrabbani wants to merge 2 commits into
masterfrom
first-action

Conversation

@adamrabbani

Copy link
Copy Markdown
Owner

No description provided.

@github-learning-lab

Copy link
Copy Markdown

The Dockerfile isn't where I expected. Here are some troubleshooting steps that might help.

Problem Solution
The file isn't called Dockerfile (case sensitive). Rename the file using the UI or your CLI.
The directory action-a doesn't exist. Create the action-a folder and move the Dockerfile to action-a.
The Dockerfile isn't inside the action-a folder. Move the Dockerfile to action-a.

When I detect your new commit, I'll respond in this pull request.

@github-learning-lab

Copy link
Copy Markdown

Nice work, you committed a Dockerfile. You'll notice at the end of the Dockerfile, we refer to an entrypoint script.

ENTRYPOINT ["/entrypoint.sh"]

The entrypoint.sh script will be run in Docker, and it will define what the action is really going to be doing.

Step 2: Add an entrypoint script

An entrypoint script must exist in our repository so that Docker has something to execute.

⌨️ Activity: Add an entrypoint script and commit it to your branch

  1. As a part of this branch and pull request, create a file in the /action-a/ directory titled entrypoint.sh. You can do so with this quicklink

  2. Add the following content to the entrypoint.sh file:

    #!/bin/sh -l
    
    sh -c "echo Hello world my name is $INPUT_MY_NAME"
  3. Stage and commit the changes

  4. Push the changes to GitHub


I'll respond when I detect a new commit on this branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant