Jack 8804179a92
Some checks failed
Build and push image / deploy (push) Failing after 34s
Update build.yaml
2023-08-25 19:11:09 +01:00

22 lines
636 B
YAML

name: Build and push image
on:
push:
branches: [main]
jobs:
deploy:
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: |
echo "${{ secrets.DOCKERHUB_TOKEN }}" | docker login -u thatguyjack --password-stdin
docker build -t tgj.services/git/php-fpm:latest .
docker push tgj.services/git/php-fpm:latestversion: "3.8"