-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create Dockerfile #2
base: main
Are you sure you want to change the base?
Conversation
Nice work, you committed a ENTRYPOINT ["/entrypoint.sh"] The Step 2: Add an entrypoint scriptAn 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
I'll respond when I detect a new commit on this branch. |
Nice work adding the In Next, we'll define the action.ymlAll actions require a metadata file that uses YAML syntax. The data in the metadata file defines the Step 3: Add an action metadata fileWe will use an ⌨️ Activity: Create action.yml
I'll respond when I detect a new commit on this branch. |
Next, we'll define a workflow that uses the GitHub Action. Workflow FilesWorkflows are defined in special files in the Workflows can execute based on your chosen event. For this lab, we'll be using the We'll break down each line of the workflow in the next step. Step 4: Start your workflow fileFirst, we'll add the structure of the workflow. ⌨️ Activity: Name and trigger your workflow
Trouble pushing? Click here.The It is possible that you are using an integration (like GitHub Desktop or any other tool that authenticates as you and pushes on your behalf) if you receive a message like the one below: To https://github.com/your-username/your-repo.git
! [remote rejected] your-branch -> your-branch (refusing to allow an integration to update main.yml)
error: failed to push some refs to 'https://github.com/your-username/your-repo.git' I'll respond when I detect a new commit on this branch. |
Nice work! 🎉 You added a workflow! Here's what it means:
Next, we need to specify a job or jobs to run. ActionsWorkflows piece together jobs, and jobs piece together steps. We'll now create a job that runs an action. Actions can be used from within the same repository, from any other public repository, or from a published Docker container image. We'll use an action that we'll define in this repository. We'll add the block now, and break it down in the next step. Step 5: Run an action from your workflow fileLet's add the expected action to the workflow. ⌨️ Activity: Add an action block to your workflow file
Trouble pushing?The It is possible that you are using an integration (like GitHub Desktop or any other tool that authenticates as you and pushes on your behalf) if you receive a message like the one below: To https://github.com/your-username/your-repo.git
! [remote rejected] your-branch -> your-branch (refusing to allow an integration to update main.yml)
error: failed to push some refs to 'https://github.com/your-username/your-repo.git' I'll respond when I detect a new commit on this branch. |
Nice, you just added an action block to your workflow file! Here are some important details about why each part of the block exists and what each part does.
Your action has been triggered!Your repository now contains an action (defined in the This action will run any time a new commit is created or pushed to the remote repository. Since you just created a commit, the workflow should have been triggered. This might take a few minutes since it's the first time running in this repository. Seeing your Action in actionThe status of your action is shown here in the pull request (look for All checks have passed below), or you can click the "Actions" tab in your repository. From there you will see the actions that have run, and you can click on the action's "Log" link to view details. Step 6: Trigger the workflow⌨️ Activity: See your action trigger the workflowYou've done the work, now sit back and see your action trigger the workflow! I will respond when I detect your action has run and reported a status.
|
Almost there, but the workflow didn't run. Here's some possible reasons why:
Troubleshooting stepsCheck out the action's output in the Actions tab. You can also use the following to help you troubleshoot: For
|
Problem | Solution |
---|---|
entrypoint.sh isn't executable. |
In your shell, run chmod +x action-a/entrypoint.sh on this branch and push it up to GitHub. |
The file isn't called entrypoint.sh (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 entrypoint.sh to action-a . |
The entrypoint.sh file isn't inside the action-a folder. |
Move entrypoint.sh to action-a . |
For /action-a/Dockerfile
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 . |
For .github/workflows/main.yml
Problem | Solution |
---|---|
There's some problem with your syntax in main.yml . |
Copy and paste the code exactly as is shown in this PR (check for extra spaces, symbols) or see if an error appears in the action logs. |
The file isn't called main.yml (case sensitive). |
Rename the file using the UI or your CLI. |
The directory .github/workflows doesn't exist. |
Create the .github/workflows folders and move main.yml to .github/workflows . |
The main.yml file isn't inside the .github/workflows folder. |
Move main.yml to .github/workflows . |
Next time you commit, your action will try to run. I'll respond when that occurs.
1 similar comment
Almost there, but the workflow didn't run. Here's some possible reasons why:
Troubleshooting stepsCheck out the action's output in the Actions tab. You can also use the following to help you troubleshoot: For
|
Problem | Solution |
---|---|
entrypoint.sh isn't executable. |
In your shell, run chmod +x action-a/entrypoint.sh on this branch and push it up to GitHub. |
The file isn't called entrypoint.sh (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 entrypoint.sh to action-a . |
The entrypoint.sh file isn't inside the action-a folder. |
Move entrypoint.sh to action-a . |
For /action-a/Dockerfile
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 . |
For .github/workflows/main.yml
Problem | Solution |
---|---|
There's some problem with your syntax in main.yml . |
Copy and paste the code exactly as is shown in this PR (check for extra spaces, symbols) or see if an error appears in the action logs. |
The file isn't called main.yml (case sensitive). |
Rename the file using the UI or your CLI. |
The directory .github/workflows doesn't exist. |
Create the .github/workflows folders and move main.yml to .github/workflows . |
The main.yml file isn't inside the .github/workflows folder. |
Move main.yml to .github/workflows . |
Next time you commit, your action will try to run. I'll respond when that occurs.
Almost there, but the workflow didn't run. Here's some possible reasons why:
Troubleshooting stepsCheck out the action's output in the Actions tab. You can also use the following to help you troubleshoot: For
|
Problem | Solution |
---|---|
entrypoint.sh isn't executable. |
In your shell, run chmod +x action-a/entrypoint.sh on this branch and push it up to GitHub. |
The file isn't called entrypoint.sh (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 entrypoint.sh to action-a . |
The entrypoint.sh file isn't inside the action-a folder. |
Move entrypoint.sh to action-a . |
For /action-a/Dockerfile
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 . |
For .github/workflows/main.yml
Problem | Solution |
---|---|
There's some problem with your syntax in main.yml . |
Copy and paste the code exactly as is shown in this PR (check for extra spaces, symbols) or see if an error appears in the action logs. |
The file isn't called main.yml (case sensitive). |
Rename the file using the UI or your CLI. |
The directory .github/workflows doesn't exist. |
Create the .github/workflows folders and move main.yml to .github/workflows . |
The main.yml file isn't inside the .github/workflows folder. |
Move main.yml to .github/workflows . |
Next time you commit, your action will try to run. I'll respond when that occurs.
Almost there, but the workflow didn't run. Here's some possible reasons why:
Troubleshooting stepsCheck out the action's output in the Actions tab. You can also use the following to help you troubleshoot: For
|
Problem | Solution |
---|---|
entrypoint.sh isn't executable. |
In your shell, run chmod +x action-a/entrypoint.sh on this branch and push it up to GitHub. |
The file isn't called entrypoint.sh (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 entrypoint.sh to action-a . |
The entrypoint.sh file isn't inside the action-a folder. |
Move entrypoint.sh to action-a . |
For /action-a/Dockerfile
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 . |
For .github/workflows/main.yml
Problem | Solution |
---|---|
There's some problem with your syntax in main.yml . |
Copy and paste the code exactly as is shown in this PR (check for extra spaces, symbols) or see if an error appears in the action logs. |
The file isn't called main.yml (case sensitive). |
Rename the file using the UI or your CLI. |
The directory .github/workflows doesn't exist. |
Create the .github/workflows folders and move main.yml to .github/workflows . |
The main.yml file isn't inside the .github/workflows folder. |
Move main.yml to .github/workflows . |
No description provided.