Git Komut Rehberi & Terminal Asistanı
Sıfırdan Yeni Bir Depo Başlatın:
Mevcut Bir Git Deposu veya Klasörü Gönderin:
Hataları Geri Alma, İptal & Temizlik:
Son commit'i geri al (yapılan değişiklikleri korur):
git reset --soft HEAD~1
Yapılan yerel değişiklikleri iptal et (çalışma ağacını temizler):
git restore .
Takip edilmeyen gereksiz dosyaları sil:
git clean -fd
Değişiklikleri geçici sakla ve geri getir (stash):
git stash git stash pop
Dal (Branch) ve Sürüm Etiketleri:
Yeni dal aç ve geçiş yap:
git checkout -b yeni-ozellik git push -u origin yeni-ozellik
Sürüm etiketi (tag) oluştur ve gönder:
git tag -a v1.0.0 -m "Sürüm 1.0.0" git push origin --tags
Merge pull request #15 from tystuyfzand/feature/prebuilt-docker
Provide pre-built Docker image publishing and GHCR compose usage.
This commit is contained in:
@@ -0,0 +1,50 @@
|
||||
name: Build and Push Docker Images
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
- '**'
|
||||
|
||||
jobs:
|
||||
build:
|
||||
permissions:
|
||||
packages: write
|
||||
contents: read
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout Repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@v3
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
|
||||
- name: Log in to GitHub Container Registry
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: ghcr.io
|
||||
username: ${{ github.actor }}
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Extract Docker metadata
|
||||
id: meta
|
||||
uses: docker/metadata-action@v5
|
||||
with:
|
||||
images: ghcr.io/${{ github.repository }}
|
||||
tags: |
|
||||
type=ref,event=branch
|
||||
type=sha,format=short
|
||||
type=raw,value=latest,enable=${{ github.ref == 'refs/heads/main' }}
|
||||
|
||||
- name: Build and Push Docker Image
|
||||
uses: docker/build-push-action@v5
|
||||
with:
|
||||
context: .
|
||||
file: deploy/docker/Dockerfile
|
||||
platforms: linux/amd64,linux/arm64
|
||||
push: true
|
||||
tags: ${{ steps.meta.outputs.tags }}
|
||||
labels: ${{ steps.meta.outputs.labels }}
|
||||
@@ -94,13 +94,31 @@ If `docker` is not recognized, install Docker Desktop and open it once before ru
|
||||
|
||||
### Start SketchForge
|
||||
|
||||
#### Compose (Build images locally)
|
||||
|
||||
From the SketchForge project folder, run:
|
||||
|
||||
```bash
|
||||
docker compose -f deploy/docker/compose.yaml up --build -d
|
||||
```
|
||||
|
||||
The first start can take a few minutes because Docker builds the app. After it finishes, open this on the same computer:
|
||||
The first start can take a few minutes because Docker builds the app.
|
||||
|
||||
#### Compose (Prebuilt)
|
||||
|
||||
From the SketchForge project folder or with the downloaded `deploy/docker/compose-ghcr.yaml`, run:
|
||||
|
||||
```bash
|
||||
docker compose -f deploy/docker/compose-ghcr.yaml up -d
|
||||
```
|
||||
|
||||
#### Standalone (Prebuilt)
|
||||
|
||||
```bash
|
||||
docker run -d --name sketchforge --restart unless-stopped -p 3000:80 ghcr.io/formsmith746/sketchforge-3d:latest
|
||||
```
|
||||
|
||||
After running, open this on the same computer:
|
||||
|
||||
```text
|
||||
http://127.0.0.1:3000/
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
services:
|
||||
sketchforge:
|
||||
image: ghcr.io/formsmith746/sketchforge-3d:latest
|
||||
ports:
|
||||
- "${SKETCHFORGE_PORT:-3000}:80"
|
||||
restart: unless-stopped
|
||||
Reference in New Issue
Block a user