Update docker-image.yml

This commit is contained in:
2022-10-05 10:46:49 +03:00
committed by GitHub
parent 5f7faed295
commit f4cefac6d5
+6 -3
View File
@@ -13,13 +13,16 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Login to Docker Hub
-
name: Login to Docker Hub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_GITHUB_TOKEN }}
- name: Build the Docker image
-
name: Build the Docker image
uses: actions/checkout@v3
run: docker build . --file ./LearnCollectInst.Api/Dockerfile --tag ${{ secrets.DOCKER_USERNAME }}/learncollectinst.api:$(date +%s)
- name: Docker Hub push
-
name: Docker Hub push
run: docker push ${{ secrets.DOCKER_USERNAME }}/learncollectinst.api