Skip to content
Merged
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
51 changes: 51 additions & 0 deletions .github/workflows/build_release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
on:
push:
tags:
- '*.*.*'

name: Create Github Release

permissions:
contents: write

env:
COMPOSE_USER: runner
VITE_APP_API_BASE: https://api.podwalk.itkdev.dk
VITE_APP_API_ROUTE: /api/v1/

jobs:
create-release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Composer install
run: |
docker network create frontend
docker compose run --rm --user=root node npm install
docker compose run --rm --user=root node npm run build

- name: Make assets dir
run: |
mkdir -p ../assets

- name: Make assets dir
run: |
sudo rm -rf node_modules

- name: Create archive
run: |
sudo chown -R runner:runner ./
tar --exclude='.git' -zcf ../assets/${{ github.event.repository.name }}-${{ github.ref_name }}.tar.gz ./

- name: Create checksum
run: |
cd ../assets
sha256sum ${{ github.event.repository.name }}-${{ github.ref_name }}.tar.gz > ../assets/checksum.txt

- name: Create a release in GitHub and uploads assets
run: gh release create ${{ github.ref_name }} --verify-tag --generate-notes ../assets/*.*
env:
GITHUB_TOKEN: ${{ github.TOKEN }}
shell: bash
42 changes: 42 additions & 0 deletions .woodpecker/deployment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
when:
- event: release

skip_clone: true

steps:
- name: Ansible playbook
image: itkdev/ansible-plugin:1
pull: true
settings:
id:
from_secret: id
secret:
from_secret: secret
host:
from_secret: host
path:
from_secret: path
user:
from_secret: user
playbook: 'release'
pre_up:
- itkdev-docker-compose-server run --rm phpfpm bin/console cache:clear

- name: Run post deploy
image: itkdev/ansible-plugin:1
pull: true
settings:
id:
from_secret: id
secret:
from_secret: secret
host:
from_secret: host
path:
from_secret: path
user:
from_secret: user
actions:
- /usr/bin/docker run --rm -v .:/app -v ./../../shared/.env.local:/app/.env.local --workdir=/app node:20 npm install
- /usr/bin/docker run --rm -v .:/app -v ./../../shared/.env.local:/app/.env.local --workdir=/app node:20 npm run build
- /usr/bin/docker run --rm -v .:/app --workdir=/app node:20 rm -rf node_modules
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## Unreleased

## [1.0.8] - 2025-28-01

- Updated deployment steps.

## [1.0.7] - 2025-28-01

- [PR-67](https://github.com/itk-dev/aapodwalk/pull/67)
- Security updates
- [PR-66](https://github.com/itk-dev/aapodwalk/pull/66)
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,9 @@ docker run --rm --volume "$PWD:/work" tmknom/prettier:latest --write src
### Check and apply markdownlint

```shell name=markdown-check
docker run --rm --volume "$PWD:/md" peterdavehello/markdownlint markdownlint --ignore node_modules --ignore LICENSE.md '**/*.md'
docker run --rm --volume "$PWD:/md" itkdev/markdownlint --ignore node_modules --ignore LICENSE.md '**/*.md'
```

```shell name=markdown-apply
docker run --rm --volume "$PWD:/md" peterdavehello/markdownlint markdownlint --ignore node_modules --ignore LICENSE.md '**/*.md' --fix
docker run --rm --volume "$PWD:/md" itkdev/markdownlint --ignore node_modules --ignore LICENSE.md '**/*.md' --fix
```
4 changes: 4 additions & 0 deletions docker-compose.server.prod.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
services:
nginx:
volumes:
- ../../shared/.env.local:/app/.env.local
Loading