Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds it-tools #39684

Merged
merged 10 commits into from
Jan 22, 2025
Merged
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
81 changes: 81 additions & 0 deletions it-tools.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
package:
name: it-tools
version: 2024.10.22
epoch: 0
description: Collection of handy online tools for developers, with great UX
copyright:
- license: GPL-3.0
options:
no-depends: true
dependencies:
runtime:
- ${{package.name}}-nginx-config
- nginx

environment:
contents:
packages:
- build-base
- busybox
- ca-certificates-bundle
- git
- nginx-package-config
- node-gyp
- nodejs
- npm
- pnpm
environment:
NPM_CONFIG_LOGLEVEL: "warn"

pipeline:
- uses: git-checkout
with:
repository: https://github.com/CorentinTh/it-tools.git
# Needs to be updated manually from https://github.com/CorentinTh/it-tools/releases
tag: "v${{package.version}}-7ca5933"
expected-commit: 5732483fc24a6e6818839060bdf3cc7d9d324b9f

- runs: |
pnpm i --frozen-lockfile
pnpm build

- runs: |
mkdir -p ${{targets.contextdir}}/usr/share/nginx/html
mv dist/* ${{targets.contextdir}}/usr/share/nginx/html

- uses: strip

subpackages:
- name: ${{package.name}}-nginx-config
description: nginx config for it-tools
dependencies:
provides:
- nginx-config=0.${{package.full-version}}
pipeline:
- runs: |
# Copy nginx config
mkdir -p ${{targets.subpkgdir}}/etc/nginx
mkdir -p ${{targets.subpkgdir}}/etc/nginx/conf.d
cp -rf /etc/nginx/* ${{targets.subpkgdir}}/etc/nginx/
cp nginx.conf ${{targets.contextdir}}/etc/nginx/conf.d/default.conf
# Default error logs to stderr
sed -i 's/#error_log logs\/error.log;$/error_log stderr notice;/' ${{targets.subpkgdir}}/etc/nginx/nginx.conf
# And access logs to stdout
sed -i 's/#access_log.*;$/access_log \/dev\/stdout;/' ${{targets.subpkgdir}}/etc/nginx/nginx.conf

update:
enabled: true
manual: true
github:
identifier: CorentinTh/it-tools
strip-prefix: v
use-tag: true
strip-suffix: -.*
tag-filter: v

test:
pipeline:
- name: Verify nginx
runs: |
stat /etc/nginx/conf.d/default.conf
stat /usr/share/nginx/html/index.html
Loading