add build ci

This commit is contained in:
2025-07-21 18:24:50 +03:00
parent 36997a577b
commit 89d319aa77

19
.github/workflows/ci.yml vendored Normal file
View File

@@ -0,0 +1,19 @@
name: Build and Push to ghcr.io
on:
push:
branches: [main]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Build and push Docker image
run: |
docker build -t ghcr.io/serverussnap/imagegenerator:latest .
echo "${{ secrets.GHCR_TOKEN }}" | docker login ghcr.io -u serverussnap --password-stdin
docker push ghcr.io/serverussnap/imagegenerator:latest