33 Commits
Author SHA1 Message Date
Mateusz PstruchaandClaude Opus 5.5 c1da26d973 ci: release on tags and deploy to www.mtps.pl
CI / build (push) Successful in 35s
Release / release (push) Successful in 22s
Release / deploy (push) Successful in 15s
Mirror iledopapiezowej/frontend: CI on master and PRs, versioned release
assets on v* tags, then deploy through ygg/actions/deploy.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-04 16:12:10 +02:00
Mateusz Pstrucha 2456bc4a3e test3
Release / release (push) Successful in 1m14s
2026-09-14 19:45:49 +02:00
Mateusz Pstrucha 1a46db3c5c test2 2026-09-14 19:43:43 +02:00
Mateusz Pstrucha f517a54f68 debil 2026-09-14 19:43:19 +02:00
Mateusz Pstrucha 1ba58d6e9d test 2026-09-14 19:42:10 +02:00
Mateusz Pstrucha c458a9f51c nvm 2026-09-14 19:40:12 +02:00
Mateusz Pstrucha dcc4415d8e new cicd 2026-09-14 19:12:31 +02:00
Mateusz Pstrucha 9c70c83eec Update dependency security baseline 2026-09-14 18:57:44 +02:00
mtps 231a238e77 Update Jenkinsfile
Gitea/mtps/homepage/pipeline/head Something is wrong with the build of this commit
2024-03-06 18:22:28 +01:00
Mateusz Pstrucha a0b9e7df47 remove github workflow 2023-12-16 00:33:43 +01:00
Mateusz Pstrucha 0ef472cf3f almost got it right 2023-12-16 00:32:33 +01:00
Mateusz Pstrucha 15591f2a25 test artifacts 2023-12-16 00:29:42 +01:00
Mateusz Pstrucha 8db3fcf387 fix sftp commands 2023-12-16 00:01:03 +01:00
Mateusz Pstrucha ba488136e8 fix sftp 2023-12-15 23:56:21 +01:00
Mateusz Pstrucha 3c68ff26d1 swap rsync for sftp 2023-12-15 23:49:51 +01:00
Mateusz Pstrucha f75b78c330 fix target path 2023-12-15 23:43:11 +01:00
Mateusz Pstrucha 28f7e1e99f update lockfile 2023-12-15 23:16:34 +01:00
Mateusz Pstrucha 2598d9ecde add Jenkinsfile 2023-12-15 22:57:16 +01:00
Mateusz Pstrucha bea42ada6b Update build.yml 2023-05-04 18:18:26 +02:00
Mateusz Pstrucha 412676b3fb update bio 2023-05-04 18:14:50 +02:00
Mateusz Pstrucha 0cfb212d59 change link 2023-04-10 21:02:10 +02:00
Mateusz Pstrucha 00c27fb975 fix ansible 2023-03-26 12:47:21 +02:00
Mateusz Pstrucha 6b2a00b520 publish 2023-03-26 12:39:45 +02:00
Mateusz Pstrucha 862cbb2af3 job dependency 2023-03-26 11:12:21 +02:00
Mateusz Pstrucha dc39faf8ce move deploy 2023-03-26 11:10:16 +02:00
Mateusz Pstrucha 6423dee1fc add deploy workflow 2023-03-26 11:07:26 +02:00
Mateusz Pstrucha a521d0062f eslint config 2023-03-26 00:51:22 +01:00
Mateusz Pstrucha 0dd6c18862 pnpm version again 2023-03-26 00:40:43 +01:00
Mateusz Pstrucha 84317c970a pnpm version 2023-03-26 00:38:49 +01:00
Mateusz Pstrucha ac007b1c6e add pnpm to actions 2023-03-26 00:36:50 +01:00
Mateusz Pstrucha 0ca7a6c6ee bump actions 2023-03-26 00:33:28 +01:00
Mateusz Pstrucha 895409f91c Merge pull request #2 from Maathias/refactor
Refactor
2023-03-26 00:28:41 +01:00
Mateusz Pstrucha 5eb17003ae Merge pull request #1 from Maathias/cleanup
Cleanup
2021-06-27 19:07:23 +02:00
9 changed files with 9336 additions and 7251 deletions

No files matched your search

+5
View File
@@ -0,0 +1,5 @@
---
rules:
eqeqeq: off
react/jsx-no-target-blank: off
react-hooks/exhaustive-deps: off
+39
View File
@@ -0,0 +1,39 @@
name: CI
on:
push:
branches: [master]
pull_request:
# Superseding pushes shouldn't each wait for a full build on the shared
# runner. Releases deliberately aren't covered — cancelling a publish
# halfway is worse than running it twice.
concurrency:
group: ${{ gitea.workflow }}-${{ gitea.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: rocky-10
steps:
- name: Check out source
uses: actions/checkout@v4
# Version comes from the packageManager field in package.json.
- name: Set up pnpm
uses: pnpm/action-setup@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 24
cache: pnpm
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Type check
run: pnpm check
- name: Build
run: pnpm build
+84
View File
@@ -0,0 +1,84 @@
name: Release
# v1.2.3 -> production build, release, deploy/static.yml (www.mtps.pl)
on:
push:
tags: ['v*']
jobs:
release:
runs-on: rocky-10
outputs:
version: ${{ steps.meta.outputs.version }}
steps:
- name: Check out source
uses: actions/checkout@v4
- name: Derive version
id: meta
run: |
VERSION="${GITHUB_REF_NAME#v}"
echo "version=$VERSION" >> "$GITHUB_OUTPUT"
echo "$VERSION"
# Version comes from the packageManager field in package.json.
- name: Set up pnpm
uses: pnpm/action-setup@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 24
cache: pnpm
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Type check
run: pnpm check
- name: Build
run: pnpm build
- name: Create release archive
env:
VERSION: ${{ steps.meta.outputs.version }}
run: |
NAME="${{ gitea.event.repository.name }}-${VERSION}.tgz"
# Archive the *contents* of build/ rather than build/ itself, so it
# untars straight into a web root.
tar -czf "$NAME" -C build .
sha256sum "$NAME" > "$NAME.sha256"
- name: Create release
uses: akkuman/gitea-release-action@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
server_url: ${{ gitea.server_url }}
tag_name: ${{ gitea.ref_name }}
name: ${{ gitea.ref_name }}
files: |-
${{ gitea.event.repository.name }}-*.tgz
${{ gitea.event.repository.name }}-*.tgz.sha256
# static-server on kara downloads the release asset, so this runs after it
deploy:
needs: release
runs-on: rocky-10
# never run two deploys at once
concurrency:
group: deploy-${{ gitea.repository }}
cancel-in-progress: false
steps:
- name: Check out source
uses: actions/checkout@v4
- name: Deploy
uses: https://git.app.ygg/ygg/actions/deploy@v2
with:
type: static
dist-path: deploy/static.yml
extra-vars: |
static_release=${{ needs.release.outputs.version }}
ssh-key: ${{ secrets.DEPLOY_SSH_KEY }}
known-hosts: ${{ vars.DEPLOY_KNOWN_HOSTS }}
-29
View File
@@ -1,29 +0,0 @@
name: CI
on:
push:
branches: [master]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Install Node.js
uses: actions/setup-node@v1
with:
node-version: '16'
- name: Install dependencies
run: pnpm install
- name: Build
run: pnpm run build
- uses: actions/upload-artifact@master
with:
name: build
path: build/
+36
View File
@@ -0,0 +1,36 @@
---
# Static site: https://git.app.ygg/mtps/homepage
#
# Deployed by .gitea/workflows/release.yml through ygg/actions/deploy
# (deploy/static playbook on kara).
#
# static_release is passed by the release workflow (-e static_release=1.2.3).
# For a manual run pass it the same way, there's deliberately no default here.
# Release assets are versioned (homepage-<version>.tgz), and static-server only
# auto-detects *.tar.gz, so the asset is named explicitly.
static_stack_name: homepage
domain: www.mtps.pl
# /etc/nginx/certs/<cert>.conf on the nginx host
cert: mtps.pl
# static_service replaces the role default as a whole, so every key is required
static_service:
name: static
image: "{{ gitea_host }}/ygg/static-server:latest"
environment:
GITEA_REPOSITORY_URL: "https://{{ gitea_host }}/mtps/homepage"
GITEA_RELEASE: "v{{ static_release }}"
GITEA_ASSET_NAME: "homepage-{{ static_release }}.tgz"
SSL_CERT_FILE: /etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem
volumes:
- /etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem:/etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem:ro
ports:
- target: 8080
published: 11903
protocol: tcp
mode: ingress
replicas: 3
restart_policy:
condition: on-failure
+23 -14
View File
@@ -1,25 +1,34 @@
{
"name": "homepage",
"version": "1.0.0",
"version": "1.0.3",
"private": true,
"packageManager": "pnpm@11.28.2",
"engines": {
"node": ">=18.18.0",
"pnpm": ">=11.0.0"
},
"dependencies": {
"@testing-library/jest-dom": "^5.16.5",
"@testing-library/react": "^14.0.0",
"@testing-library/user-event": "^14.4.3",
"@types/jest": "^29.5.0",
"@types/node": "^18.15.10",
"@types/react": "^18.0.29",
"@types/react-dom": "^18.0.11",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-scripts": "5.0.1",
"typescript": "^5.0.2",
"web-vitals": "^3.3.0"
"web-vitals": "^3.5.2"
},
"devDependencies": {
"@testing-library/jest-dom": "^5.17.0",
"@testing-library/react": "^14.3.1",
"@testing-library/user-event": "^14.6.1",
"@types/jest": "^29.5.14",
"@types/node": "^22.15.0",
"@types/react": "^18.3.31",
"@types/react-dom": "^18.3.7",
"typescript": "^5.9.3"
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject"
"eject": "react-scripts eject",
"check": "tsc --noEmit"
},
"eslintConfig": {
"extends": [
@@ -39,4 +48,4 @@
"last 1 safari version"
]
}
}
}
+9121 -7191
View File
File diff suppressed because it is too large. Load diff
+12
View File
@@ -0,0 +1,12 @@
allowBuilds:
core-js: true
core-js-pure: true
overrides:
'@tootallnate/once': ^2.0.1
nth-check: ^2.1.1
postcss: ^8.5.23
qs: ^6.16.0
serialize-javascript: ^7.0.5
svgo: ^2.8.4
underscore: ^1.13.7
uuid: ^11.1.1
+16 -17
View File
@@ -50,10 +50,13 @@ function App() {
Typescript.
</p>
<p>
Alongside development, I host my projects and apps on two servers
running Ubuntu Server. All my domains are being balanced by NGINX. I
maintain all the local services we use on our home network. Most of
them are running on a PfSense box.
Alongside development, I host my projects and apps on a small
network, that I run with my friend. It consists of 3x locations,
with main machines running Proxmox VE. They are all connected with
IPSEC, running on OPNsense boxes. Load balancing is done by NGINX,
and certificates are generated automatically from Letsencrypt. My
software projects are automated with Github Actions and Ansible, to
automatically deploy new builds to target machines (VMs).
</p>
<p>
I write a significant portions of my own tooling, and experiment
@@ -64,18 +67,20 @@ function App() {
</div>
<div className="stack">
{[
'mongodb-plain bigger',
'express-original bigger',
'react-original bigger',
'nodejs-plain bigger',
'typescript-plain bigger',
'react-original bigger',
'mongodb-plain bigger',
'nginx-original bigger',
'linux-plain bigger',
'typescript-plain bigger',
'ansible-plain bigger',
//
' spacer',
//
'python-plain big',
//,
'docker-plain big',
'express-original',
'terraform-plain',
'python-plain big',
'git-plain big',
'socketio-original',
'javascript-plain',
@@ -104,12 +109,6 @@ function App() {
></i>
))}
{/* <li>React</li>
<li>JQuery</li>
<li>Express.js</li>
<li>Redis</li>
<li>MongoDB</li>
<li>MySQL</li> */}
</div>
</section>
@@ -141,7 +140,7 @@ function App() {
label="auth"
badges={['javascript-plain', 'nodejs-plain']}
link="https://github.com/maathias/auth"
image="https://user-images.githubusercontent.com/24920514/172725558-dcb40535-f13e-4f8e-852f-2c573b606ff1.png"
image="https://github.com/Maathias/auth/raw/master/docs/example.png"
>
Cross subdomain log in page. Made to easily integrate socials
accounts into one username&password, for all custom services on a