Compare commits
1 Commits
cd3892b1d2
...
c62cec4502
Author | SHA1 | Date | |
---|---|---|---|
c62cec4502 |
167
.drone.yml
Normal file
167
.drone.yml
Normal file
|
@ -0,0 +1,167 @@
|
||||||
|
---
|
||||||
|
kind: pipeline
|
||||||
|
type: docker
|
||||||
|
name: build
|
||||||
|
|
||||||
|
platform:
|
||||||
|
os: linux
|
||||||
|
arch: amd64
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: build
|
||||||
|
image: node:16-bullseye
|
||||||
|
commands:
|
||||||
|
- yarn && yarn build
|
||||||
|
|
||||||
|
trigger:
|
||||||
|
event:
|
||||||
|
- push
|
||||||
|
- pull_request
|
||||||
|
branch:
|
||||||
|
- master
|
||||||
|
|
||||||
|
---
|
||||||
|
kind: pipeline
|
||||||
|
type: docker
|
||||||
|
name: linux-amd64
|
||||||
|
|
||||||
|
platform:
|
||||||
|
os: linux
|
||||||
|
arch: amd64
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: publish
|
||||||
|
image: plugins/docker
|
||||||
|
settings:
|
||||||
|
username:
|
||||||
|
from_secret: docker_username
|
||||||
|
password:
|
||||||
|
from_secret: docker_password
|
||||||
|
registry: gitea.dwysokinski.me
|
||||||
|
repo: gitea.dwysokinski.me/twhelp-packages/scripts
|
||||||
|
auto_tag: true
|
||||||
|
auto_tag_suffix: linux-amd64
|
||||||
|
dockerfile: Dockerfile
|
||||||
|
- name: notify
|
||||||
|
image: drillster/drone-email
|
||||||
|
settings:
|
||||||
|
from.address:
|
||||||
|
from_secret: email_from
|
||||||
|
from.name: Drone
|
||||||
|
host:
|
||||||
|
from_secret: email_host
|
||||||
|
username:
|
||||||
|
from_secret: email_username
|
||||||
|
password:
|
||||||
|
from_secret: email_password
|
||||||
|
recipients:
|
||||||
|
- notifications@dwysokinski.me
|
||||||
|
recipients_only: true
|
||||||
|
when:
|
||||||
|
status:
|
||||||
|
- failure
|
||||||
|
|
||||||
|
trigger:
|
||||||
|
event:
|
||||||
|
- tag
|
||||||
|
|
||||||
|
---
|
||||||
|
kind: pipeline
|
||||||
|
type: docker
|
||||||
|
name: manifest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: manifest
|
||||||
|
image: plugins/manifest
|
||||||
|
settings:
|
||||||
|
auto_tag: "true"
|
||||||
|
ignore_missing: "true"
|
||||||
|
spec: manifest.tmpl
|
||||||
|
username:
|
||||||
|
from_secret: docker_username
|
||||||
|
password:
|
||||||
|
from_secret: docker_password
|
||||||
|
- name: manifest-latest
|
||||||
|
image: plugins/manifest
|
||||||
|
settings:
|
||||||
|
tags: latest
|
||||||
|
ignore_missing: "true"
|
||||||
|
spec: manifest.tmpl
|
||||||
|
username:
|
||||||
|
from_secret: docker_username
|
||||||
|
password:
|
||||||
|
from_secret: docker_password
|
||||||
|
- name: notify
|
||||||
|
image: drillster/drone-email
|
||||||
|
settings:
|
||||||
|
from.address:
|
||||||
|
from_secret: email_from
|
||||||
|
from.name: Drone
|
||||||
|
host:
|
||||||
|
from_secret: email_host
|
||||||
|
username:
|
||||||
|
from_secret: email_username
|
||||||
|
password:
|
||||||
|
from_secret: email_password
|
||||||
|
recipients:
|
||||||
|
- notifications@dwysokinski.me
|
||||||
|
recipients_only: true
|
||||||
|
when:
|
||||||
|
status:
|
||||||
|
- failure
|
||||||
|
|
||||||
|
trigger:
|
||||||
|
event:
|
||||||
|
- tag
|
||||||
|
|
||||||
|
depends_on:
|
||||||
|
- linux-amd64
|
||||||
|
|
||||||
|
---
|
||||||
|
kind: pipeline
|
||||||
|
type: docker
|
||||||
|
name: deploy
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: deploy-k8s
|
||||||
|
image: alpine/k8s:1.26.5
|
||||||
|
environment:
|
||||||
|
KUBECONFIG:
|
||||||
|
from_secret: kubeconfig
|
||||||
|
commands:
|
||||||
|
- "mkdir ~/.kube && echo \"$KUBECONFIG\" > ~/.kube/twhelp"
|
||||||
|
- "cd ./k8s/overlays/prod && kustomize edit set image scripts=gitea.dwysokinski.me/twhelp-packages/scripts:${DRONE_TAG##v} && cd ../../.."
|
||||||
|
- kustomize build ./k8s/overlays/prod | kubectl --kubeconfig ~/.kube/twhelp apply -n twhelp -f -
|
||||||
|
- name: notify
|
||||||
|
image: drillster/drone-email
|
||||||
|
settings:
|
||||||
|
from.address:
|
||||||
|
from_secret: email_from
|
||||||
|
from.name: Drone
|
||||||
|
host:
|
||||||
|
from_secret: email_host
|
||||||
|
username:
|
||||||
|
from_secret: email_username
|
||||||
|
password:
|
||||||
|
from_secret: email_password
|
||||||
|
recipients:
|
||||||
|
- notifications@dwysokinski.me
|
||||||
|
recipients_only: true
|
||||||
|
subject: "[deploy - {{ build.status }}] {{ repo.owner }}/{{ repo.name }} ({{ build.branch }} - {{ truncate build.commit 8 }})"
|
||||||
|
when:
|
||||||
|
status:
|
||||||
|
- success
|
||||||
|
- failure
|
||||||
|
|
||||||
|
trigger:
|
||||||
|
event:
|
||||||
|
- tag
|
||||||
|
|
||||||
|
depends_on:
|
||||||
|
- manifest
|
||||||
|
|
||||||
|
---
|
||||||
|
kind: signature
|
||||||
|
hmac: 7d871aa28a97b39f7c567f55700bffcb2919a8b7caf9e232bf99b6a045b15369
|
||||||
|
|
||||||
|
...
|
|
@ -1,34 +0,0 @@
|
||||||
when:
|
|
||||||
event: [tag]
|
|
||||||
ref: refs/tags/v*
|
|
||||||
|
|
||||||
steps:
|
|
||||||
deploy:
|
|
||||||
image: alpine/k8s:1.26.5
|
|
||||||
secrets:
|
|
||||||
- kubeconfig
|
|
||||||
commands:
|
|
||||||
- "mkdir ~/.kube && echo \"$KUBECONFIG\" > ~/.kube/twhelp"
|
|
||||||
- "cd ./k8s/overlays/prod && kustomize edit set image scripts=gitea.dwysokinski.me/twhelp-packages/scripts:${CI_COMMIT_TAG##v} && cd ../../.."
|
|
||||||
- kustomize build ./k8s/overlays/prod | kubectl --kubeconfig ~/.kube/twhelp apply -n twhelp -f -
|
|
||||||
notify:
|
|
||||||
image: deblan/woodpecker-email
|
|
||||||
settings:
|
|
||||||
from:
|
|
||||||
from_secret: email_from
|
|
||||||
from.name: Woodpecker
|
|
||||||
host:
|
|
||||||
from_secret: email_host
|
|
||||||
username:
|
|
||||||
from_secret: email_username
|
|
||||||
password:
|
|
||||||
from_secret: email_password
|
|
||||||
recipients:
|
|
||||||
- notifications@dwysokinski.me
|
|
||||||
recipients_only: true
|
|
||||||
subject: "[deploy - {{ build.status }}] {{ repo.owner }}/{{ repo.name }} ({{ build.branch }} - {{ truncate build.commit 8 }})"
|
|
||||||
when:
|
|
||||||
status: [failure]
|
|
||||||
|
|
||||||
depends_on:
|
|
||||||
- docker
|
|
|
@ -1,33 +0,0 @@
|
||||||
when:
|
|
||||||
event: [tag]
|
|
||||||
ref: refs/tags/v*
|
|
||||||
|
|
||||||
steps:
|
|
||||||
publish:
|
|
||||||
image: woodpeckerci/plugin-docker-buildx
|
|
||||||
settings:
|
|
||||||
platforms: linux/amd64
|
|
||||||
repo: gitea.dwysokinski.me/twhelp-packages/scripts
|
|
||||||
registry: gitea.dwysokinski.me
|
|
||||||
auto_tag: true
|
|
||||||
username:
|
|
||||||
from_secret: docker_username
|
|
||||||
password:
|
|
||||||
from_secret: docker_password
|
|
||||||
notify:
|
|
||||||
image: deblan/woodpecker-email
|
|
||||||
settings:
|
|
||||||
from:
|
|
||||||
from_secret: email_from
|
|
||||||
from.name: Woodpecker
|
|
||||||
host:
|
|
||||||
from_secret: email_host
|
|
||||||
username:
|
|
||||||
from_secret: email_username
|
|
||||||
password:
|
|
||||||
from_secret: email_password
|
|
||||||
recipients:
|
|
||||||
- notifications@dwysokinski.me
|
|
||||||
recipients_only: true
|
|
||||||
when:
|
|
||||||
status: [failure]
|
|
|
@ -1,15 +0,0 @@
|
||||||
when:
|
|
||||||
- event: [pull_request]
|
|
||||||
- event: push
|
|
||||||
branch:
|
|
||||||
- ${CI_REPO_DEFAULT_BRANCH}
|
|
||||||
|
|
||||||
variables:
|
|
||||||
- &node_image 'node:18'
|
|
||||||
|
|
||||||
steps:
|
|
||||||
test-build:
|
|
||||||
image: *node_image
|
|
||||||
pull: true
|
|
||||||
commands:
|
|
||||||
- yarn && yarn build
|
|
|
@ -1,4 +1,4 @@
|
||||||
FROM node:18.17-alpine as build-deps
|
FROM node:16.20-alpine as build-deps
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY package.json yarn.lock ./
|
COPY package.json yarn.lock ./
|
||||||
|
|
|
@ -7,7 +7,7 @@ const DIST_DIR = 'dist';
|
||||||
const metadata = {
|
const metadata = {
|
||||||
'extended-player-profile': `// ==UserScript==
|
'extended-player-profile': `// ==UserScript==
|
||||||
// @name Extended player profile
|
// @name Extended player profile
|
||||||
// @version 1.1.5
|
// @version 1.1.4
|
||||||
// @description Adds additional info and actions on a player overview.
|
// @description Adds additional info and actions on a player overview.
|
||||||
// @author Dawid Wysokiński - Kichiyaki - contact@dwysokinski.me
|
// @author Dawid Wysokiński - Kichiyaki - contact@dwysokinski.me
|
||||||
// @match https://*/game.php?*screen=info_player*
|
// @match https://*/game.php?*screen=info_player*
|
||||||
|
@ -19,7 +19,7 @@ const metadata = {
|
||||||
// ==/UserScript==`,
|
// ==/UserScript==`,
|
||||||
'extended-map-popup': `// ==UserScript==
|
'extended-map-popup': `// ==UserScript==
|
||||||
// @name Extended map popup
|
// @name Extended map popup
|
||||||
// @version 1.0.4
|
// @version 1.0.3
|
||||||
// @description Extends the map popup with additional info.
|
// @description Extends the map popup with additional info.
|
||||||
// @author Dawid Wysokiński - Kichiyaki - contact@dwysokinski.me
|
// @author Dawid Wysokiński - Kichiyaki - contact@dwysokinski.me
|
||||||
// @match https://*/game.php?*screen=map*
|
// @match https://*/game.php?*screen=map*
|
||||||
|
@ -31,7 +31,7 @@ const metadata = {
|
||||||
// ==/UserScript==`,
|
// ==/UserScript==`,
|
||||||
'extended-village-profile': `// ==UserScript==
|
'extended-village-profile': `// ==UserScript==
|
||||||
// @name Extended village profile
|
// @name Extended village profile
|
||||||
// @version 1.0.3
|
// @version 1.0.2
|
||||||
// @description Adds additional info and actions on a village overview.
|
// @description Adds additional info and actions on a village overview.
|
||||||
// @author Dawid Wysokiński - Kichiyaki - contact@dwysokinski.me
|
// @author Dawid Wysokiński - Kichiyaki - contact@dwysokinski.me
|
||||||
// @match https://*/game.php?*screen=info_village*
|
// @match https://*/game.php?*screen=info_village*
|
||||||
|
@ -43,7 +43,7 @@ const metadata = {
|
||||||
// ==/UserScript==`,
|
// ==/UserScript==`,
|
||||||
'extended-tribe-profile': `// ==UserScript==
|
'extended-tribe-profile': `// ==UserScript==
|
||||||
// @name Extended tribe profile
|
// @name Extended tribe profile
|
||||||
// @version 1.0.3
|
// @version 1.0.2
|
||||||
// @description Adds additional info and actions on a tribe overview.
|
// @description Adds additional info and actions on a tribe overview.
|
||||||
// @author Dawid Wysokiński - Kichiyaki - contact@dwysokinski.me
|
// @author Dawid Wysokiński - Kichiyaki - contact@dwysokinski.me
|
||||||
// @match https://*/game.php?*screen=info_ally*
|
// @match https://*/game.php?*screen=info_ally*
|
||||||
|
|
12
yarn.lock
12
yarn.lock
|
@ -1154,9 +1154,9 @@
|
||||||
integrity sha512-vxhUy4J8lyeyinH7Azl1pdd43GJhZH/tP2weN8TntQblOY+A0XbT8DJk1/oCPuOOyg/Ja757rG0CgHcWC8OfMA==
|
integrity sha512-vxhUy4J8lyeyinH7Azl1pdd43GJhZH/tP2weN8TntQblOY+A0XbT8DJk1/oCPuOOyg/Ja757rG0CgHcWC8OfMA==
|
||||||
|
|
||||||
"@types/jquery@^3.5.14":
|
"@types/jquery@^3.5.14":
|
||||||
version "3.5.19"
|
version "3.5.18"
|
||||||
resolved "https://registry.yarnpkg.com/@types/jquery/-/jquery-3.5.19.tgz#f9b6cb7ed82cd92584ce33238ee8425798358365"
|
resolved "https://registry.yarnpkg.com/@types/jquery/-/jquery-3.5.18.tgz#2a4979866954e601361ddc62ea304c9e46311b77"
|
||||||
integrity sha512-KFbmk+dXfphHGuVCmlopgcNRCegN/21mkeoD4BzuJhVH0SJW3Uo2mLuAwb6oqTNV79EsRp6J7yC1BbKymjpx/g==
|
integrity sha512-sNm7O6LECFhHmF+3KYo6QIl2fIbjlPYa0PDgDQwfOaEJzwpK20Eub9Ke7VKkGsSJ2K0HUR50S266qYzRX4GlSw==
|
||||||
dependencies:
|
dependencies:
|
||||||
"@types/sizzle" "*"
|
"@types/sizzle" "*"
|
||||||
|
|
||||||
|
@ -1404,9 +1404,9 @@ asynckit@^0.4.0:
|
||||||
integrity sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==
|
integrity sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==
|
||||||
|
|
||||||
axios@^1.2.2:
|
axios@^1.2.2:
|
||||||
version "1.5.0"
|
version "1.4.0"
|
||||||
resolved "https://registry.yarnpkg.com/axios/-/axios-1.5.0.tgz#f02e4af823e2e46a9768cfc74691fdd0517ea267"
|
resolved "https://registry.yarnpkg.com/axios/-/axios-1.4.0.tgz#38a7bf1224cd308de271146038b551d725f0be1f"
|
||||||
integrity sha512-D4DdjDo5CY50Qms0qGQTTw6Q44jl7zRwY7bthds06pUGfChBCTcQs+N743eFWGEd6pRTMd6A+I87aWyFV5wiZQ==
|
integrity sha512-S4XCWMEmzvo64T9GfvQDOXgYRDJ/wsSZc7Jvdgx5u1sd0JwsuPLqb3SYmusag+edF6ziyMensPVqLTSc1PiSEA==
|
||||||
dependencies:
|
dependencies:
|
||||||
follow-redirects "^1.15.0"
|
follow-redirects "^1.15.0"
|
||||||
form-data "^4.0.0"
|
form-data "^4.0.0"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user