Skip to content

Commit d9be750

Browse files
committed
changed the username, password, and included docker build job, also added the github.sha
1 parent ce90833 commit d9be750

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/push-docker-image.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,12 @@ jobs:
4040
docker build -t awesome-fastapi:${{ github.sha }} .
4141
docker run -d -p 8080:8080 awesome-fastapi:${{ github.sha }}
4242
43+
- name: Docker inspect
44+
run: |
45+
docker inspect ghcr.io/${{ env.IMAGE_NAME }}
46+
4347
# Push the Docker image to the registry
4448
- name: Push Docker Image to GHCR
4549
run: |
46-
docker push ghcr.io/${{ env.IMAGE_NAME }}:testing
50+
docker push ghcr.io/${{ env.IMAGE_NAME }}
4751

0 commit comments

Comments
 (0)