24 lines
470 B
YAML
24 lines
470 B
YAML
name: Deploy
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
build-and-deploy:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Install Docker
|
|
uses: docker/setup-buildx-action@v2
|
|
|
|
- name: Build Docker image
|
|
run: docker build -t markdownblog .
|
|
|
|
- name: Push Docker image
|
|
run: docker push registry.gitea.com/user/markdownblog:latest
|
|
|
|
- name: Deploy to Gitea |