From da2c56639d8cd340615be1821c8397240f897935 Mon Sep 17 00:00:00 2001 From: Sthope Date: Tue, 23 Apr 2024 20:12:30 +0200 Subject: [PATCH] Update .gitea/workflows/build-image.yml --- .gitea/workflows/build-image.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.gitea/workflows/build-image.yml b/.gitea/workflows/build-image.yml index c42554f..7e660f8 100644 --- a/.gitea/workflows/build-image.yml +++ b/.gitea/workflows/build-image.yml @@ -52,8 +52,9 @@ jobs: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} - name: Build and push - run: | - docker build -t sthopeless/iventoy:latest . - docker push sthopeless/iventoy:latest - docker tag sthopeless/iventoy:latest sthopeless/iventoy:latest - docker push sthopeless/iventoy:latest + id: docker_build + uses: docker/build-push-action@v2 + with: + push: true + tags: ${{ secrets.DOCKERHUB_USERNAME }}/${GITEA_REPOSITORY_NAME}:latest +