Update .gitea/workflows/gitea-ci.yml
All checks were successful
Build And Test / publish (push) Successful in 1m45s
All checks were successful
Build And Test / publish (push) Successful in 1m45s
This commit is contained in:
parent
f12ed3d2ca
commit
9b6f48c1b5
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user