From ab23e09cea704fbc2973d3b9a556c3924850c74b Mon Sep 17 00:00:00 2001 From: Nicholas Cote <131394540+NicholasCote@users.noreply.github.com> Date: Fri, 2 Aug 2024 16:59:45 -0600 Subject: [PATCH] Test image build --- August-08-2024/Containerfile | 1 + August-08-2024/walkthrough.ipynb | 18 ++++++++++++++++-- 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/August-08-2024/Containerfile b/August-08-2024/Containerfile index 3915848..3eb79bd 100644 --- a/August-08-2024/Containerfile +++ b/August-08-2024/Containerfile @@ -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 diff --git a/August-08-2024/walkthrough.ipynb b/August-08-2024/walkthrough.ipynb index 9a16363..387e919 100644 --- a/August-08-2024/walkthrough.ipynb +++ b/August-08-2024/walkthrough.ipynb @@ -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", @@ -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. " ] }, {