Skip to content

Commit

Permalink
Test image build
Browse files Browse the repository at this point in the history
  • Loading branch information
NicholasCote authored Aug 2, 2024
1 parent 975a73b commit ab23e09
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
1 change: 1 addition & 0 deletions August-08-2024/Containerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Use the slim Python image as the base
# Nicks image from the workshop
# Switched from Mamba in previous workshop to Python to reduce final image size
FROM python:slim

Expand Down
18 changes: 16 additions & 2 deletions August-08-2024/walkthrough.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@
" # Provide the current directory as build context \n",
" context: August-08-2024/.\n",
" # Specify where the Dockerfile is located in relation to the repo base path\n",
" file: Containerfile\n",
" file: August-08-2024/Containerfile\n",
" # Enable the push to docker hub\n",
" push: false\n",
" # Provide the tags to apply to the image, this example uses the latest image tag \n",
Expand All @@ -187,7 +187,21 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"Push the changes, the new workflow action file, by using the branch on the left side of your browser window. It should have a circle with a 1 inside it to show we have 1 change that can be committed and pushed. "
"Push the changes, the new workflow action file, by using the branch on the left side of your browser window. It should have a circle with a 1 inside it to show we have 1 change that can be committed and pushed. After clicking on the branch icon there will be a text box to enter a commit message. Enter a descriptive message like added build test workflow file and click the green Commit & Push button. Our Action is now live in our repository and we can use it to build images. "
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"##### Test the new workflow"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"The GitHub action defined only triggers when changes are made to the August-08-2024 directory on the main branch. Let's open the Containerfile and add a new comment so it changes the Containerfile, but not actually how it's built and run. Once the comment has been added you will see that the GitHub extension in the left bar shows we have another change that can be pushed. Let's go ahead and add another commit message and push the new changes to kick off the GitHub Action. Once the push has been made we can watch the status of our GitHub action by going back to teh repository URL and selecting Actions in the middle of the top navigation bar on the site. "
]
},
{
Expand Down

0 comments on commit ab23e09

Please sign in to comment.