Compare commits
1 commit
main
...
renovate/a
Author | SHA1 | Date | |
---|---|---|---|
0c51b7d9aa |
2 changed files with 32 additions and 26 deletions
|
@ -12,7 +12,7 @@ jobs:
|
||||||
if: secrets.MIRROR_TOKEN != ''
|
if: secrets.MIRROR_TOKEN != ''
|
||||||
runs-on: docker
|
runs-on: docker
|
||||||
container:
|
container:
|
||||||
image: alpine:3.21@sha256:21dc6063fd678b478f57c0e13f47560d0ea4eeba26dfc947b2a4f81f686b9f45
|
image: alpine:3.21@sha256:56fa17d2a7e7f168a043a2712e63aed1f8543aeafdcee47c58dcffe38ed51099
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Install packages
|
- name: Install packages
|
||||||
|
|
|
@ -27,36 +27,42 @@ jobs:
|
||||||
show-progress: false
|
show-progress: false
|
||||||
|
|
||||||
- name: Renovate
|
- name: Renovate
|
||||||
|
run: |
|
||||||
|
echo "Testing docker login..."
|
||||||
|
docker login -u "${{ secrets.DOCKER_USERNAME }}" -p "${{ secrets.DOCKER_PASSWORD }}"
|
||||||
|
renovate ${{ env.INPUT_ARGS }}
|
||||||
env:
|
env:
|
||||||
# Global config
|
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
|
||||||
RENOVATE_BINARY_SOURCE: "docker"
|
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
|
||||||
RENOVATE_PLATFORM: gitea
|
|
||||||
RENOVATE_ENDPOINT: ${{ github.server_url }}
|
|
||||||
RENOVATE_TOKEN: ${{ secrets.RUNAS_USER_TOKEN }}
|
|
||||||
GITHUB_COM_TOKEN: ${{ secrets.GH_TOKEN }}
|
GITHUB_COM_TOKEN: ${{ secrets.GH_TOKEN }}
|
||||||
# RENOVATE_DOCKER_USER: "$(id -u):$(cut -d: -f3 < <(getent group docker))"
|
LOG_LEVEL: debug
|
||||||
RENOVATE_DOCKER_USER: "$(id -u):0"
|
LOG_FORMAT: json
|
||||||
|
RENOVATE_ENDPOINT: ${{ github.server_url }}
|
||||||
# Git config
|
RENOVATE_PLATFORM: gitea
|
||||||
|
RENOVATE_TOKEN: ${{ github.repository == 'jahanson/renovate-config' && secrets.TOKEN || secrets.GITHUB_TOKEN }}
|
||||||
RENOVATE_GIT_AUTHOR: 'Renovate Bot <smeagol@hsn.dev>'
|
RENOVATE_GIT_AUTHOR: 'Renovate Bot <smeagol@hsn.dev>'
|
||||||
|
RENOVATE_HOST_RULES: |-
|
||||||
|
[
|
||||||
|
{
|
||||||
|
"matchHost": "hub.docker.com",
|
||||||
|
"hostType": "",
|
||||||
|
"username": "${{ secrets.DOCKER_USERNAME }}",
|
||||||
|
"password": "${{ secrets.DOCKER_PASSWORD }}"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"matchHost": "ghcr.io",
|
||||||
|
"hostType": "",
|
||||||
|
"username": "${{ secrets.GH_USERNAME }}",
|
||||||
|
"password": "${{ secrets.GH_TOKEN }}"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"matchHost": "git.hsn.dev",
|
||||||
|
"username": "${{ secrets.DOCKER_USERNAME }}",
|
||||||
|
"token": "${{ secrets.MIRROR_TOKEN }}"
|
||||||
|
}
|
||||||
|
]
|
||||||
GIT_AUTHOR_NAME: 'Renovate Bot'
|
GIT_AUTHOR_NAME: 'Renovate Bot'
|
||||||
GIT_AUTHOR_EMAIL: 'smeagol@hsn.dev'
|
GIT_AUTHOR_EMAIL: 'smeagol@hsn.dev'
|
||||||
GIT_COMMITTER_NAME: 'Renovate Bot'
|
GIT_COMMITTER_NAME: 'Renovate Bot'
|
||||||
GIT_COMMITTER_EMAIL: 'smeagol@hsn.dev'
|
GIT_COMMITTER_EMAIL: 'smeagol@hsn.dev'
|
||||||
|
|
||||||
# # Authentication using host rules format
|
|
||||||
# GITHUB_GITHUB_COM_TOKEN: ${{ secrets.GH_TOKEN }}
|
|
||||||
# DOCKER_DOCKER_IO_USERNAME: ${{ secrets.DOCKER_USERNAME }}
|
|
||||||
# DOCKER_DOCKER_IO_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
|
|
||||||
# DOCKER_GHCR_IO_USERNAME: ${{ secrets.GH_USERNAME }}
|
|
||||||
# DOCKER_GHCR_IO_PASSWORD: ${{ secrets.GH_TOKEN }}
|
|
||||||
# GITEA_GIT_HSN_DEV_TOKEN: ${{ secrets.MIRROR_TOKEN }}
|
|
||||||
|
|
||||||
# Logging
|
|
||||||
LOG_LEVEL: debug
|
|
||||||
LOG_FORMAT: json
|
|
||||||
LOG_FILE_LEVEL: debug
|
|
||||||
|
|
||||||
# Command execution
|
|
||||||
INPUT_ARGS: ${{ inputs.args || (github.repository != 'jahanson/renovate-config' && github.repository) || '--autodiscover' }}
|
INPUT_ARGS: ${{ inputs.args || (github.repository != 'jahanson/renovate-config' && github.repository) || '--autodiscover' }}
|
||||||
run: renovate ${{ env.INPUT_ARGS }}
|
|
||||||
|
|
Loading…
Reference in a new issue