Compare commits
2 commits
faab218a47
...
8c378c065a
Author | SHA1 | Date | |
---|---|---|---|
8c378c065a | |||
14e3c538ff |
8 changed files with 90 additions and 42 deletions
9
.github/workflows/deploy.yml
vendored
9
.github/workflows/deploy.yml
vendored
|
@ -4,20 +4,13 @@ on: workflow_dispatch
|
|||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: antville
|
||||
|
||||
environment:
|
||||
name: p3k.org
|
||||
url: https://blog.p3k.org
|
||||
|
||||
steps:
|
||||
- name: Set up SSH agent
|
||||
uses: antville/helma/.github/actions/ssh@helma-🐜
|
||||
with:
|
||||
config: ${{ vars.SSH_CONFIG }}
|
||||
key: ${{ secrets.SSH_PRIVATE_KEY }}
|
||||
known-hosts: ${{ vars.SSH_KNOWN_HOSTS }}
|
||||
|
||||
- name: Copy files to production server
|
||||
run: ssh staging-server deploy-antville
|
||||
|
||||
|
|
42
.github/workflows/renovate.yml
vendored
Normal file
42
.github/workflows/renovate.yml
vendored
Normal file
|
@ -0,0 +1,42 @@
|
|||
name: Run Renovate
|
||||
|
||||
#on: workflow_dispatch
|
||||
|
||||
on:
|
||||
schedule:
|
||||
- cron: "42 * * * *"
|
||||
|
||||
jobs:
|
||||
renovate:
|
||||
runs-on: antville
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Run Renovate
|
||||
run: npx renovate
|
||||
env:
|
||||
# Renovate is using this token to retrieve release notes
|
||||
GITHUB_COM_TOKEN: ${{ secrets.renovate_github_com_token }}
|
||||
# See <https://docs.renovatebot.com/troubleshooting/#log-debug-levels>
|
||||
LOG_LEVEL: info # debug | info | warn | error | fatal
|
||||
RENOVATE_AUTODISCOVER: 'true'
|
||||
RENOVATE_CONFIG_FILE: renovate.json
|
||||
RENOVATE_ENDPOINT: ${{ github.api_url }}
|
||||
RENOVATE_GIT_AUTHOR: Renovate Bot <mail+renovate@antville.org>
|
||||
#RENOVATE_GIT_IGNORED_AUTHORS:
|
||||
# - 29139614+renovate[bot]@users.noreply.github.com
|
||||
RENOVATE_IGNORE_PR_AUTHOR: 'true'
|
||||
RENOVATE_LOG_FILE: renovate-log.ndjson
|
||||
RENOVATE_LOG_FILE_LEVEL: debug
|
||||
RENOVATE_PLATFORM: gitea
|
||||
RENOVATE_REPOSITORY_CACHE: 'enabled'
|
||||
# github.token is not working here, it lacks some permissions required by Renovate
|
||||
RENOVATE_TOKEN: ${{ secrets.renovate_token }} #${{ github.token }}
|
||||
|
||||
- name: Save log file
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: renovate-log.ndjson
|
||||
path: renovate-log.ndjson
|
||||
|
14
.github/workflows/stage.yml
vendored
14
.github/workflows/stage.yml
vendored
|
@ -4,25 +4,15 @@ on: workflow_dispatch
|
|||
|
||||
jobs:
|
||||
stage:
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: antville
|
||||
|
||||
environment:
|
||||
name: stage
|
||||
url: https://antville-test.online
|
||||
url: ${{ vars.stage_url }}
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Set up SSH agent
|
||||
uses: antville/helma/.github/actions/ssh@helma-🐜
|
||||
with:
|
||||
config: ${{ vars.SSH_CONFIG }}
|
||||
key: ${{ secrets.SSH_PRIVATE_KEY }}
|
||||
known-hosts: ${{ vars.SSH_KNOWN_HOSTS }}
|
||||
|
||||
- name: Set up Gradle
|
||||
uses: gradle/actions/setup-gradle@v3
|
||||
|
||||
- name: Build with Gradle
|
||||
run: ./gradlew :build
|
||||
|
||||
|
|
8
.github/workflows/stale.yml
vendored
8
.github/workflows/stale.yml
vendored
|
@ -1,21 +1,21 @@
|
|||
name: Mark stale issues and pull requests
|
||||
|
||||
on:
|
||||
on:
|
||||
schedule:
|
||||
- cron: "30 1 * * *"
|
||||
|
||||
jobs:
|
||||
stale:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: antville
|
||||
permissions:
|
||||
issues: write
|
||||
pull-requests: write
|
||||
|
||||
steps:
|
||||
- uses: actions/stale@v9
|
||||
- uses: https://github.com/actions/stale@v9
|
||||
with:
|
||||
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
repo-token: ${{ github.token }}
|
||||
stale-issue-message: 'Stale issue message'
|
||||
stale-pr-message: 'Stale pull request message'
|
||||
stale-issue-label: 'no-issue-activity'
|
||||
|
|
36
.github/workflows/test.yml
vendored
36
.github/workflows/test.yml
vendored
|
@ -4,7 +4,7 @@ on: workflow_dispatch
|
|||
|
||||
jobs:
|
||||
test:
|
||||
runs-on: host-runner
|
||||
runs-on: debian
|
||||
|
||||
environment:
|
||||
name: p3k.org
|
||||
|
@ -15,4 +15,36 @@ jobs:
|
|||
run: |
|
||||
whoami
|
||||
pwd
|
||||
find -maxdepth 1 /
|
||||
ls -ahl ~
|
||||
echo $SHELL
|
||||
|
||||
- name: Ping staging server
|
||||
run: ssh staging-server ping
|
||||
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Run Renovate
|
||||
run: npx renovate
|
||||
env:
|
||||
# TODO:
|
||||
#GITHUB_COM_TOKEN=
|
||||
# See <https://docs.renovatebot.com/troubleshooting/#log-debug-levels>
|
||||
LOG_LEVEL: debug # debug | info | warn | error | fatal
|
||||
#RENOVATE_CONFIG_FILE: ./.gitlab/renovate.json
|
||||
RENOVATE_ENDPOINT: ${{ github.api_url }}
|
||||
RENOVATE_GIT_AUTHOR: Renovate Bot <mail+renovate@antville.org>
|
||||
RENOVATE_LOG_FILE: renovate-log.ndjson
|
||||
RENOVATE_LOG_FILE_LEVEL: debug
|
||||
RENOVATE_PLATFORM: gitea
|
||||
#RENOVATE_REPOSITORIES: $CI_PROJECT_PATH
|
||||
RENOVATE_AUTODISCOVER: 'true'
|
||||
RENOVATE_REPOSITORY_CACHE: 'enabled'
|
||||
RENOVATE_TOKEN: ${{ vars.renovate_token }} #${{ github.token }}
|
||||
|
||||
- uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: Renovate log
|
||||
path: renovate-log.ndjson
|
||||
|
||||
#- name: Build with Gradle
|
||||
# run: ./gradlew :build
|
||||
|
|
20
package-lock.json
generated
20
package-lock.json
generated
|
@ -17,7 +17,7 @@
|
|||
"uikit": "2.27.4"
|
||||
},
|
||||
"devDependencies": {
|
||||
"browserify": "17.0.0",
|
||||
"browserify": "17.0.1",
|
||||
"generate-license-file": "3.0.1",
|
||||
"jsdoc": "4.0.2",
|
||||
"less": "4.2.0",
|
||||
|
@ -1052,9 +1052,9 @@
|
|||
}
|
||||
},
|
||||
"node_modules/browserify": {
|
||||
"version": "17.0.0",
|
||||
"resolved": "https://registry.npmjs.org/browserify/-/browserify-17.0.0.tgz",
|
||||
"integrity": "sha512-SaHqzhku9v/j6XsQMRxPyBrSP3gnwmE27gLJYZgMT2GeK3J0+0toN+MnuNYDfHwVGQfLiMZ7KSNSIXHemy905w==",
|
||||
"version": "17.0.1",
|
||||
"resolved": "https://registry.npmjs.org/browserify/-/browserify-17.0.1.tgz",
|
||||
"integrity": "sha512-pxhT00W3ylMhCHwG5yfqtZjNnFuX5h2IJdaBfSo4ChaaBsIp9VLrEMQ1bHV+Xr1uLPXuNDDM1GlJkjli0qkRsw==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
|
@ -1074,7 +1074,7 @@
|
|||
"duplexer2": "~0.1.2",
|
||||
"events": "^3.0.0",
|
||||
"glob": "^7.1.0",
|
||||
"has": "^1.0.0",
|
||||
"hasown": "^2.0.0",
|
||||
"htmlescape": "^1.1.0",
|
||||
"https-browserify": "^1.0.0",
|
||||
"inherits": "~2.0.1",
|
||||
|
@ -2672,16 +2672,6 @@
|
|||
"dev": true,
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/has": {
|
||||
"version": "1.0.4",
|
||||
"resolved": "https://registry.npmjs.org/has/-/has-1.0.4.tgz",
|
||||
"integrity": "sha512-qdSAmqLF6209RFj4VVItywPMbm3vWylknmB3nvNiUIs72xAimcM8nVYxYr7ncvZq5qzk9MKIZR8ijqD/1QuYjQ==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"engines": {
|
||||
"node": ">= 0.4.0"
|
||||
}
|
||||
},
|
||||
"node_modules/has-bigints": {
|
||||
"version": "1.0.2",
|
||||
"resolved": "https://registry.npmjs.org/has-bigints/-/has-bigints-1.0.2.tgz",
|
||||
|
|
|
@ -39,7 +39,7 @@
|
|||
"uikit": "2.27.4"
|
||||
},
|
||||
"devDependencies": {
|
||||
"browserify": "17.0.0",
|
||||
"browserify": "17.0.1",
|
||||
"generate-license-file": "3.0.1",
|
||||
"jsdoc": "4.0.2",
|
||||
"less": "4.2.0",
|
||||
|
|
|
@ -20,6 +20,7 @@
|
|||
},
|
||||
|
||||
"labels": ["dependency"],
|
||||
"gitIgnoredAuthors": ["29139614+renovate[bot]@users.noreply.github.com"],
|
||||
|
||||
"packageRules": [
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue