From 33adbbc3c7c1a6cefd91985181cc82a8c3acb91a Mon Sep 17 00:00:00 2001 From: MD Date: Tue, 5 Mar 2024 20:43:54 +0200 Subject: [PATCH] Update docker-image.yml --- .github/workflows/docker-image.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index c6fcbdb..3c6af81 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -23,12 +23,12 @@ jobs: - name: Build the Docker image run: | - docker build . --file Dockerfile --tag formartha/ai1899:${{ steps.git_sha.outputs.sha }} --compress + docker build . --file Dockerfile --tag formartha/ai1899:${{ steps.git_sha.outputs.sha }} --tag formartha/ai1899:latest --compress - name: Log into Docker Hub run: echo "${{ secrets.DOCKER_PASSWORD }}" | docker login -u "${{ secrets.DOCKER_USERNAME }}" --password-stdin - name: Push Docker image to Docker Hub run: | - docker tag formartha/ai1899:${{ steps.git_sha.outputs.sha }} formartha/ai1899:latest + docker push formartha/ai1899:${{ steps.git_sha.outputs.sha }} docker push formartha/ai1899:latest