From 3f5fe6106db9585488de998c01509580886d1e1b Mon Sep 17 00:00:00 2001 From: Claudiu Farcas Date: Wed, 5 Oct 2022 10:22:26 +0300 Subject: [PATCH] Update docker-image.yml --- .github/workflows/docker-image.yml | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 6e401b1..38ca35c 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -13,6 +13,16 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - name: Build the Docker image - run: docker build . --file ./LearnCollectInst.Api/Dockerfile --tag learncollectinst.api:$(date +%s) + - + 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 + 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