Skip to content

Commit b4cca5b

Browse files
authored
Merge pull request #16 from wendev27/checkpoint-10-Github-Actions-automated-testing-and-ci
test(ci): automate Docker image publishing to Docker Hub
2 parents d44d01f + 7808368 commit b4cca5b

5 files changed

Lines changed: 13 additions & 1 deletion

File tree

.github/workflows/hello.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,14 @@ jobs:
2626
docker build \
2727
-t my-first-image \
2828
labs/docker/dockerfile-lab
29+
30+
- name: Log in to Docker Hub
31+
uses: docker/login-action@v3
32+
with:
33+
username: ${{ secrets.DOCKER_USERNAME }}
34+
password: ${{ secrets.DOCKER_TOKEN }}
35+
36+
- name: Push Docker image
37+
run: |
38+
docker tag my-first-image wendev27/my-first-image:latest
39+
docker push wendev27/my-first-image:latest

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ This repository was created to:
6161
- [x] GitHub Actions
6262
- [x] Automated Testing
6363
- [x] Continuous Integration
64+
- [ ] Secrets Management
6465
- [ ] Continuous Deployment
6566
- [ ] Deployment Pipelines
6667

checkpoints/checkpoint-10-github-actions-automated-testing-and-ci.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Checkpoint 09 — GitHub Actions, Automated Testing & Continuous Integration
1+
Checkpoint 10 — GitHub Actions, Automated Testing & Continuous Integration
22
Objective
33

44
Understand how GitHub Actions automates software validation by creating temporary runners that install dependencies, execute tests, and build applications whenever code is pushed.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)