hugo.mardbrink.se/.forgejo/workflows/deploy.yml
Hugo Mårdbrink 281af6b2ec
Some checks failed
Build and Push / build (push) Failing after 19s
Add action
2025-12-05 12:50:23 +01:00

23 lines
604 B
YAML

name: Build and Push
on:
push:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build and push to registry
run: |
# Build the image
docker build -t git.mardbrink.se/hugomardbrink/hugo.mardbrink.se:latest .
# Login to Forgejo registry (requires FORGEJO_TOKEN secret)
echo "${{ secrets.FORGEJO_TOKEN }}" | docker login git.mardbrink.se -u hugomardbrink --password-stdin
# Push to registry
docker push git.mardbrink.se/hugomardbrink/hugo.mardbrink.se:latest