Compare commits
1 commit
4d64b75c31
...
1625faad3a
Author | SHA1 | Date | |
---|---|---|---|
|
1625faad3a |
5 changed files with 24 additions and 97 deletions
9
.github/workflows/deploy.yml
vendored
9
.github/workflows/deploy.yml
vendored
|
@ -4,13 +4,20 @@ on: workflow_dispatch
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
deploy:
|
deploy:
|
||||||
runs-on: antville
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
name: p3k.org
|
name: p3k.org
|
||||||
url: https://blog.p3k.org
|
url: https://blog.p3k.org
|
||||||
|
|
||||||
steps:
|
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
|
- name: Copy files to production server
|
||||||
run: ssh staging-server deploy-antville
|
run: ssh staging-server deploy-antville
|
||||||
|
|
||||||
|
|
40
.github/workflows/renovate.yml
vendored
40
.github/workflows/renovate.yml
vendored
|
@ -1,40 +0,0 @@
|
||||||
name: Run Renovate
|
|
||||||
|
|
||||||
on: workflow_dispatch
|
|
||||||
|
|
||||||
#on:
|
|
||||||
# schedule:
|
|
||||||
# - cron: "42 * * * *"
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
renovate:
|
|
||||||
runs-on: antville
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- 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: /home/runner/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,15 +4,25 @@ on: workflow_dispatch
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
stage:
|
stage:
|
||||||
runs-on: antville
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
name: stage
|
name: stage
|
||||||
url: ${{ vars.stage_url }}
|
url: https://antville-test.online
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- 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
|
- name: Build with Gradle
|
||||||
run: ./gradlew :build
|
run: ./gradlew :build
|
||||||
|
|
||||||
|
|
6
.github/workflows/stale.yml
vendored
6
.github/workflows/stale.yml
vendored
|
@ -7,15 +7,15 @@ on:
|
||||||
jobs:
|
jobs:
|
||||||
stale:
|
stale:
|
||||||
|
|
||||||
runs-on: antville
|
runs-on: ubuntu-latest
|
||||||
permissions:
|
permissions:
|
||||||
issues: write
|
issues: write
|
||||||
pull-requests: write
|
pull-requests: write
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: https://github.com/actions/stale@v9
|
- uses: actions/stale@v9
|
||||||
with:
|
with:
|
||||||
repo-token: ${{ github.token }}
|
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
stale-issue-message: 'Stale issue message'
|
stale-issue-message: 'Stale issue message'
|
||||||
stale-pr-message: 'Stale pull request message'
|
stale-pr-message: 'Stale pull request message'
|
||||||
stale-issue-label: 'no-issue-activity'
|
stale-issue-label: 'no-issue-activity'
|
||||||
|
|
50
.github/workflows/test.yml
vendored
50
.github/workflows/test.yml
vendored
|
@ -1,50 +0,0 @@
|
||||||
name: Test
|
|
||||||
|
|
||||||
on: workflow_dispatch
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
test:
|
|
||||||
runs-on: debian
|
|
||||||
|
|
||||||
environment:
|
|
||||||
name: p3k.org
|
|
||||||
url: https://blog.p3k.org
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: Do something
|
|
||||||
run: |
|
|
||||||
whoami
|
|
||||||
pwd
|
|
||||||
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
|
|
Loading…
Add table
Reference in a new issue