Files
nhgooi.nl/.gitea/workflows/build-docker.yml
T
eric.busandClaude Opus 5.5 93fa34732f Set up dev branch: build :dev image, move to gooienmeer.nl domains
- Workflow builds on every push to dev and tags the image :dev (not :latest)
- git.nhgooi.nl -> git.gooienmeer.nl
- https://api.nhgooi.nl/ -> https://api.gooienmeer.nl/
- https://nhgooi.nl/ -> https://gooienmeer.nl/

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 10:27:41 +01:00

51 lines
1.2 KiB
YAML

name: Build and Deploy (dev)
run-name: ${{ gitea.actor }} is building ${{ gitea.repository }}
on:
push:
branches:
- dev
jobs:
build:
runs-on: ubuntu-latest
env:
REGISTRY: git.gooienmeer.nl
IMAGE: git.gooienmeer.nl/nh_gooi/nhgooi.nl
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Login to Gitea Container Registry
run: |
echo "${{ secrets.REGISTRY_TOKEN }}" | \
docker login "$REGISTRY" \
-u "${{ gitea.actor }}" \
--password-stdin
- name: Build image
run: |
docker build \
-t "$IMAGE:${{ gitea.sha }}" \
-t "$IMAGE:dev" \
.
- name: Push image
run: |
docker push "$IMAGE:${{ gitea.sha }}"
docker push "$IMAGE:dev"
# - name: Trigger deployment
# run: |
# curl --fail-with-body \
# -X POST \
# -H "Content-Type: application/json" \
# -d '{
# "image": "'"$IMAGE:${{ gitea.sha }}"'",
# "commit": "${{ gitea.sha }}",
# "repository": "${{ gitea.repository }}"
# }' \
# "${{ secrets.DEPLOY_WEBHOOK_URL }}"