Update docker-image.yml

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