Nils Stinnesbeck
d91ff722a7
Some checks failed
Build and push image / deploy (push) Failing after 8s
22 lines
490 B
YAML
22 lines
490 B
YAML
name: Build and push image
|
|
|
|
on:
|
|
push:
|
|
|
|
jobs:
|
|
deploy:
|
|
runs-on: ubuntu-latest
|
|
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 .
|