CI-Test/.gitea/workflows/test.yml
Nils Stinnesbeck 668a44c452
Some checks reported warnings
Build and push image / deploy (push) Has been cancelled
test
2023-05-18 18:07:04 +02:00

23 lines
509 B
YAML

name: Build and push image
on:
push:
branches: [main]
jobs:
deploy:
runs-on: self-hosted
defaults:
run:
working-directory: /repo
steps:
- name: Set git remote if not already set
run: git remote -v | grep -w gitea || git remote add gitea "./gitea/git/repositories/${GITHUB_REPOSITORY,,}.git"
- name: Checkout repo
run: git pull gitea main
- name: Deploy
run: |
docker build -t rynomarree/self-hosted-deployment:latest .