From 9b6f48c1b5b0f9295402044dd74176c8a5b84115 Mon Sep 17 00:00:00 2001 From: yigit Date: Tue, 20 May 2025 18:37:13 +0300 Subject: [PATCH] Update .gitea/workflows/gitea-ci.yml --- .gitea/workflows/gitea-ci.yml | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/.gitea/workflows/gitea-ci.yml b/.gitea/workflows/gitea-ci.yml index 27d56a7..a77db6c 100644 --- a/.gitea/workflows/gitea-ci.yml +++ b/.gitea/workflows/gitea-ci.yml @@ -1,7 +1,3 @@ -# -# .gitea/gitea-ci.yaml -# - name: Build And Test run-name: ${{ gitea.actor }} runs ci pipeline on: [ push ] @@ -11,12 +7,23 @@ jobs: if: gitea.ref == 'refs/heads/main' steps: - uses: https://github.com/actions/checkout@v4 + - name: Set up Docker Buildx uses: https://github.com/docker/setup-buildx-action@v3 + + - name: Log in to Docker registry + uses: https://github.com/docker/login-action@v3 + with: + registry: registry.yigit.run + username: ${{ secrets.REGISTRY_USERNAME }} + password: ${{ secrets.REGISTRY_PASSWORD }} + - name: Build and push Docker image uses: https://github.com/docker/build-push-action@v5 with: context: . file: ./Dockerfile push: true - tags: "registry.yigit.run/yigit/secretarx:${{gitea.sha}},registry.yigit.run/yigit/secretarx:latest" + tags: | + registry.yigit.run/yigit/secretarx:${{ gitea.sha }} + registry.yigit.run/yigit/secretarx:latest