4 Commits
Author SHA1 Message Date
eric.busandClaude Opus 5.5 a069fffa5b ci: build the release image on version tags instead of pushes to main
- Triggers on every pushed v* tag, regardless of which files changed
  (no more paths filter / 'version' file bump needed)
- Image is tagged with the version (e.g. v3.0.2), the commit sha and latest

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 09:20:41 +01:00
eric.bus e8ff3b94cd Merge pull request 'Merge gooienmeer redesign into master' (#27) from dev into main
Build and Deploy / build (push) Successful in 2m0s
Reviewed-on: #27
2026-11-23 08:47:14 +01:00
eric.bus 964972e20b Merge pull request 'chore: update CI paths' (#25) from fix/ci-paths into main
Build and Deploy / build (push) Successful in 4m15s
Reviewed-on: #25
2026-11-20 11:09:52 +01:00
eric.bus 3d9d31a31c chore: update CI paths 2026-11-20 11:09:43 +01:00
+12 -12
View File
@@ -1,29 +1,27 @@
name: Build and Deploy
run-name: ${{ gitea.actor }} is building ${{ gitea.repository }}
run-name: ${{ gitea.actor }} is building ${{ gitea.repository }} ${{ gitea.ref_name }}
# Builds a release image for every new version tag (v1.2.3), regardless of
# which files changed. Pushes to main no longer trigger a build.
on:
push:
branches:
- main
paths:
- 'Dockerfile'
- 'composer.json'
- 'composer.lock'
- '.gitea/workflows/build-docker.yml'
- 'version' # Change this file to force rebuild
tags:
- 'v*'
jobs:
build:
runs-on: ubuntu-latest
env:
REGISTRY: git.nhgooi.nl
IMAGE: git.nhgooi.nl/nh_gooi/nhgooi.nl
REGISTRY: git.gooienmeer.nl
IMAGE: git.gooienmeer.nl/nh_gooi/nhgooi.nl
# The tag that triggered this build, e.g. v3.0.2
VERSION: ${{ gitea.ref_name }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Login to Gitea Container Registry
run: |
echo "${{ secrets.REGISTRY_TOKEN }}" | \
@@ -34,12 +32,14 @@ jobs:
- name: Build image
run: |
docker build \
-t "$IMAGE:$VERSION" \
-t "$IMAGE:${{ gitea.sha }}" \
-t "$IMAGE:latest" \
.
- name: Push image
run: |
docker push "$IMAGE:$VERSION"
docker push "$IMAGE:${{ gitea.sha }}"
docker push "$IMAGE:latest"