diff --git a/.gitea/workflows/docker-build.yaml b/.gitea/workflows/docker-build.yaml index e3b73ff..9e32b33 100644 --- a/.gitea/workflows/docker-build.yaml +++ b/.gitea/workflows/docker-build.yaml @@ -26,17 +26,9 @@ jobs: run: echo "Registry ${{ env.Registry }} Image ${{ env.IMAGE_NAME }} User ${{ env.USER }}" - name: Checkout repository uses: actions/checkout@v3 - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2 - name: Log in to the Container registry - uses: docker/login-action@v2 - with: - registry: ${{ env.REGISTRY }} - username: ${{ env.USER }} - password: ${{ secrets.TOKEN }} - - name: Build and push Docker image - uses: docker/build-push-action@v4 - with: - context: . - push: true - tags: ${{ env.REGISTRY }}/${{ env.USER }}/${{ IMAGE_NAME }}:latest + run: docker login -u ${{ env.USER }} -p ${{ secrets.TOKEN }} ${{ env.REGISTRY }} + - name: Build Container + run: docker build -t ${{ env.REGISTRY }}/${{ env.USER }}/${{ IMAGE_NAME }}:latest . + - name: Push Container + run: docker push ${{ env.REGISTRY }}/${{ env.USER }}/${{ IMAGE_NAME }}:latest