Compare commits

..

1 commit

Author SHA1 Message Date
0c51b7d9aa chore(deps): update alpine:3.21 docker digest to 56fa17d
All checks were successful
/ Renovate (push) Successful in 4m33s
2025-01-08 19:03:13 +00:00
2 changed files with 32 additions and 26 deletions

View file

@ -12,7 +12,7 @@ jobs:
if: secrets.MIRROR_TOKEN != ''
runs-on: docker
container:
image: alpine:3.21@sha256:21dc6063fd678b478f57c0e13f47560d0ea4eeba26dfc947b2a4f81f686b9f45
image: alpine:3.21@sha256:56fa17d2a7e7f168a043a2712e63aed1f8543aeafdcee47c58dcffe38ed51099
steps:
- name: Install packages

View file

@ -27,36 +27,42 @@ jobs:
show-progress: false
- name: Renovate
run: |
echo "Testing docker login..."
docker login -u "${{ secrets.DOCKER_USERNAME }}" -p "${{ secrets.DOCKER_PASSWORD }}"
renovate ${{ env.INPUT_ARGS }}
env:
# Global config
RENOVATE_BINARY_SOURCE: "docker"
RENOVATE_PLATFORM: gitea
RENOVATE_ENDPOINT: ${{ github.server_url }}
RENOVATE_TOKEN: ${{ secrets.RUNAS_USER_TOKEN }}
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
GITHUB_COM_TOKEN: ${{ secrets.GH_TOKEN }}
# RENOVATE_DOCKER_USER: "$(id -u):$(cut -d: -f3 < <(getent group docker))"
RENOVATE_DOCKER_USER: "$(id -u):0"
# Git config
LOG_LEVEL: debug
LOG_FORMAT: json
RENOVATE_ENDPOINT: ${{ github.server_url }}
RENOVATE_PLATFORM: gitea
RENOVATE_TOKEN: ${{ github.repository == 'jahanson/renovate-config' && secrets.TOKEN || secrets.GITHUB_TOKEN }}
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_EMAIL: 'smeagol@hsn.dev'
GIT_COMMITTER_NAME: 'Renovate Bot'
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' }}
run: renovate ${{ env.INPUT_ARGS }}