Skip to content

Commit 7700d3d

Browse files
Merge pull request #13 from platzi/amines/12
Update containerDeployment.yml
2 parents 6ad0457 + 1a535f9 commit 7700d3d

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

.github/workflows/containerDeployment.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,16 @@ jobs:
1717
- name: Check out the repo
1818
uses: actions/checkout@v3
1919

20-
- name: Looking for files
21-
run: ls -a
22-
2320
- name: Build Docker NET image
2421
run: |
2522
docker build --platform linux -t $IMAGE_BASE_NAME .
23+
24+
- name: Login to Docker Hub
25+
uses: docker/login-action@v2
26+
with:
27+
username: ${{ secrets.DOCKERHUB_USERNAME }}
28+
password: ${{ secrets.DOCKERHUB_TOKEN }}
29+
30+
- name: Deploy image to hub
31+
run: |
32+
docker push $IMAGE_BASE_NAME:latest

0 commit comments

Comments
 (0)