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 +