Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/changelog.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
fail-fast: false
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v5
with:
fetch-depth: 2

Expand Down
26 changes: 19 additions & 7 deletions .github/workflows/composer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
name: Composer

env:
COMPOSE_USER: root
COMPOSE_USER: runner

on:
pull_request:
Expand All @@ -41,19 +41,27 @@ jobs:
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v4
- run: |
- uses: actions/checkout@v5

- name: Create docker network
run: |
docker network create frontend

- run: |
docker compose run --rm phpfpm composer validate --strict

composer-normalized:
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v4
- run: |
- uses: actions/checkout@v5

- name: Create docker network
run: |
docker network create frontend

- run: |
docker compose run --rm phpfpm composer install
docker compose run --rm phpfpm composer normalize --dry-run

Expand All @@ -62,7 +70,11 @@ jobs:
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v4
- run: |
- uses: actions/checkout@v5

- name: Create docker network
run: |
docker network create frontend

- run: |
docker compose run --rm phpfpm composer audit
5 changes: 3 additions & 2 deletions .github/workflows/javascript.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,10 @@ jobs:
fail-fast: false
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v5

- run: |
- name: Create docker network
run: |
docker network create frontend

- run: |
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/markdown.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,10 @@ jobs:
fail-fast: false
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v5

- run: |
- name: Create docker network
run: |
docker network create frontend

- run: |
Expand Down
10 changes: 7 additions & 3 deletions .github/workflows/php.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
name: Symfony PHP

env:
COMPOSE_USER: root
COMPOSE_USER: runner

on:
pull_request:
Expand All @@ -48,9 +48,13 @@ jobs:
name: PHP - Check Coding Standards
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: |
- uses: actions/checkout@v5

- name: Create docker network
run: |
docker network create frontend

- run: |
docker compose run --rm phpfpm composer install
# https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/master/doc/usage.rst#the-check-command
docker compose run --rm phpfpm vendor/bin/php-cs-fixer fix --dry-run --diff
5 changes: 3 additions & 2 deletions .github/workflows/styles.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,10 @@ jobs:
fail-fast: false
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v5

- run: |
- name: Create docker network
run: |
docker network create frontend

- run: |
Expand Down
9 changes: 6 additions & 3 deletions .github/workflows/twig.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
name: Twig

env:
COMPOSE_USER: root
COMPOSE_USER: runner

on:
pull_request:
Expand All @@ -40,9 +40,12 @@ jobs:
fail-fast: false
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v5

- run: |
- name: Create docker network
run: |
docker network create frontend

- run: |
docker compose run --rm phpfpm composer install
docker compose run --rm phpfpm vendor/bin/twig-cs-fixer lint
5 changes: 3 additions & 2 deletions .github/workflows/yaml.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,10 @@ jobs:
yaml-lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v5

- run: |
- name: Create docker network
run: |
docker network create frontend

- run: |
Expand Down
7 changes: 5 additions & 2 deletions .woodpecker/deployment.yml → .woodpecker/prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ when:

skip_clone: true

labels:
zone: CLOUD

steps:
- name: Ansible playbook
image: itkdev/ansible-plugin:1
Expand All @@ -13,9 +16,9 @@ steps:
secret:
from_secret: secret
host:
from_secret: host
from_secret: prod_host
path:
from_secret: path
from_secret: prod_path
user:
from_secret: user
playbook: "release"
Expand Down
41 changes: 41 additions & 0 deletions .woodpecker/stg.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
when:
- branch: release/*
event: push

skip_clone: true

labels:
zone: CLOUD

steps:
- name: Run stg site update
image: itkdev/ansible-plugin:1
pull: true
settings:
id:
from_secret: id
secret:
from_secret: secret
host:
from_secret: stg_host
path:
from_secret: stg_path
user:
from_secret: user
actions:
# Checkout branch
- git fetch origin ${CI_COMMIT_BRANCH}
- git checkout --force ${CI_COMMIT_BRANCH}
- git reset --hard origin/${CI_COMMIT_BRANCH}
# Pull images
- itkdev-docker-compose-server pull
# Build assets
- docker compose run --rm node npm install
- docker compose run --rm node npm run build
- docker compose run --rm node rm -rf node_modules
# Up containers
- itkdev-docker-compose-server up --detach --force-recreate --remove-orphans
# Install php dependencies
- itkdev-docker-compose-server exec phpfpm composer install --no-dev --optimize-autoloader
# Migrate database
- itkdev-docker-compose-server exec phpfpm bin/console doctrine:migrations:migrate --no-interaction
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,14 @@ Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

## [2.0.1] - 2025-12-09

* [PR-98](https://github.com/itk-dev/kunstdatabasen/pull/98)
* Added woodpecker stg file
* [PR-96](https://github.com/itk-dev/kunstdatabasen/pull/96)
* Composer update
* Cleaned up package.json

## [2.0.0] - 2025-07-09

* [PR-86](https://github.com/itk-dev/kunstdatabasen/pull/86)
Expand Down
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"symfony/runtime": "~7.3.0",
"symfony/security-bundle": "~7.3.0",
"symfony/serializer": "~7.3.0",
"symfony/translation": "~7.3.0",
"symfony/twig-bundle": "~7.3.0",
"symfony/validator": "~7.3.0",
"symfony/webpack-encore-bundle": "^2.1",
Expand Down
Loading