ci: use master branch (not main)
This commit is contained in:
@@ -0,0 +1,29 @@
|
|||||||
|
name: Build MoneyMap image
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [master]
|
||||||
|
paths:
|
||||||
|
- "MoneyMap/**"
|
||||||
|
- "MoneyMap.Core/**"
|
||||||
|
- "MoneyMap.Mcp/**"
|
||||||
|
- "Dockerfile"
|
||||||
|
- ".gitea/workflows/build-moneymap.yml"
|
||||||
|
workflow_dispatch: {}
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build-and-push:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Log in to Gitea container registry
|
||||||
|
run: echo "${{ secrets.REGISTRY_TOKEN }}" | docker login git.thecozycat.net -u "${{ gitea.actor }}" --password-stdin
|
||||||
|
|
||||||
|
- name: Build image
|
||||||
|
run: docker build -t git.thecozycat.net/${{ gitea.repository_owner }}/moneymap:latest -t git.thecozycat.net/${{ gitea.repository_owner }}/moneymap:${{ gitea.sha }} .
|
||||||
|
|
||||||
|
- name: Push image
|
||||||
|
run: |
|
||||||
|
docker push git.thecozycat.net/${{ gitea.repository_owner }}/moneymap:latest
|
||||||
|
docker push git.thecozycat.net/${{ gitea.repository_owner }}/moneymap:${{ gitea.sha }}
|
||||||
Reference in New Issue
Block a user