CI/CD Tutorial for class presentation
Based on this tutorial.
The objective is to add a Github Action that logs into your Docker account, to the existing go.yml file.
If you do not have a Docker account, create one here.
To make your own copy of this repo, click "Fork" on the main page. Then you should be able to make the following edits.
Add
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
In your GitHub repository, navigate to "Settings" > "Secrets & variables" > "Actions" > "New repository secret".
Create a new secret named DOCKER_USERNAME with your Docker Hub username.
Create another secret named DOCKER_PASSWORD with your Docker Hub password.
Commit the go.yml file, and push the changes to GitHub.
Open your GitHub repository in a browser.
Navigate to the "Actions" tab to monitor the workflow's progress.
Ensure that the pipeline runs successfully.
Submit the URL of your GitHub repository and a screenshot of the successful pipeline run to knguyen07@email.wm.edu