frontend/.gitea/workflows/deploy.yml

28 lines
666 B
YAML

name: Build and Deploy
on:
push:
branches:
- "master"
paths-ignore:
- "**.md"
jobs:
build-docker:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build
uses: docker/build-push-action@v5
with:
context: .
load: true
tags: nerdcult_frontend:latest
- name: Deploy
run: |
docker stop nerdcult-frontend
docker rm nerdcult-frontend
docker run --name=nerdcult-frontend --restart=always -p 16396:80 -d nerdcult_frontend