Update .gitea/workflows/gitea-ci.yml
All checks were successful
Build And Test / publish (push) Successful in 1m45s

This commit is contained in:
yigit 2025-05-20 18:37:13 +03:00
parent f12ed3d2ca
commit 9b6f48c1b5

View File

@ -1,7 +1,3 @@
#
# .gitea/gitea-ci.yaml
#
name: Build And Test name: Build And Test
run-name: ${{ gitea.actor }} runs ci pipeline run-name: ${{ gitea.actor }} runs ci pipeline
on: [ push ] on: [ push ]
@ -11,12 +7,23 @@ jobs:
if: gitea.ref == 'refs/heads/main' if: gitea.ref == 'refs/heads/main'
steps: steps:
- uses: https://github.com/actions/checkout@v4 - uses: https://github.com/actions/checkout@v4
- name: Set up Docker Buildx - name: Set up Docker Buildx
uses: https://github.com/docker/setup-buildx-action@v3 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 - name: Build and push Docker image
uses: https://github.com/docker/build-push-action@v5 uses: https://github.com/docker/build-push-action@v5
with: with:
context: . context: .
file: ./Dockerfile file: ./Dockerfile
push: true 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