diff --git a/.gitea/workflows/pipeline.yml b/.gitea/workflows/pipeline.yml index 58cb12c..c075668 100644 --- a/.gitea/workflows/pipeline.yml +++ b/.gitea/workflows/pipeline.yml @@ -14,10 +14,14 @@ jobs: uses: actions/checkout@v4 - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v1 + uses: docker/setup-buildx-action@v3 - name: Log in to Gitea Container Registry - run: echo "${{ secrets.GITEA_PASSWORD }}" | docker login ${{ secrets.GITEA_REGISTRY }} -u ${{ secrets.GITEA_USERNAME }} --password-stdin + uses: docker/login-action@v1 + with: + password: ${{ secrets.GITEA_PASSWORD }} + username: ${{ secrets.GITEA_USERNAME }} + registry: ${{ secrets.GITEA_REGISTRY }} - name: Build and push Docker image uses: docker/build-push-action@v2 @@ -26,5 +30,3 @@ jobs: push: true tags: ${{ secrets.GITEA_REGISTRY }}/smig/dotechbro-website:latest - - name: Log out from Gitea Container Registry - run: docker logout ${{ secrets.GITEA_REGISTRY }}