feat: add Dockerfile and deployment configuration; update metadata and project descriptions
Some checks failed
Build and Deploy Gabriel Kaszewski Portfolio / build-and-deploy-local (push) Failing after 10s
Some checks failed
Build and Deploy Gabriel Kaszewski Portfolio / build-and-deploy-local (push) Failing after 10s
This commit is contained in:
23
.gitea/workflows/deploy.yml
Normal file
23
.gitea/workflows/deploy.yml
Normal file
@@ -0,0 +1,23 @@
|
||||
name: Build and Deploy Gabriel Kaszewski Portfolio
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
build-and-deploy-local:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout Code
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Rebuild and Deploy with Docker Compose
|
||||
run: |
|
||||
docker build --target release -t local/gabriel-portfolio:latest .
|
||||
docker compose up -d
|
||||
|
||||
# Clean up any old, unused images to save disk space
|
||||
docker image prune -f
|
Reference in New Issue
Block a user