This commit is contained in:
parent
7dbf832880
commit
d7ba661a43
1 changed files with 33 additions and 17 deletions
|
@ -26,43 +26,59 @@ jobs:
|
||||||
with:
|
with:
|
||||||
show-progress: false
|
show-progress: false
|
||||||
|
|
||||||
- name: Renovate
|
- name: Setup Docker auth
|
||||||
run: |
|
run: |
|
||||||
echo "Testing docker login..."
|
mkdir -p $HOME/.docker
|
||||||
docker login -u "${{ secrets.DOCKER_USERNAME }}" -p "${{ secrets.DOCKER_PASSWORD }}"
|
echo '{"auths":{"docker.io":{"auth":"${{ secrets.DOCKER_AUTH }}"}}}' > $HOME/.docker/config.json
|
||||||
renovate ${{ env.INPUT_ARGS }}
|
chmod 600 $HOME/.docker/config.json
|
||||||
|
|
||||||
|
- name: Renovate
|
||||||
env:
|
env:
|
||||||
|
# Global config
|
||||||
|
RENOVATE_BINARY_SOURCE: "docker"
|
||||||
|
RENOVATE_PLATFORM: gitea
|
||||||
|
RENOVATE_ENDPOINT: ${{ github.server_url }}
|
||||||
|
RENOVATE_TOKEN: ${{ github.repository == 'jahanson/renovate-config' && secrets.TOKEN || secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
|
# Git config
|
||||||
|
RENOVATE_GIT_AUTHOR: 'Renovate Bot <smeagol@hsn.dev>'
|
||||||
|
GIT_AUTHOR_NAME: 'Renovate Bot'
|
||||||
|
GIT_AUTHOR_EMAIL: 'smeagol@hsn.dev'
|
||||||
|
GIT_COMMITTER_NAME: 'Renovate Bot'
|
||||||
|
GIT_COMMITTER_EMAIL: 'smeagol@hsn.dev'
|
||||||
|
|
||||||
|
# Authentication
|
||||||
|
GITHUB_COM_TOKEN: ${{ secrets.GH_TOKEN }}
|
||||||
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
|
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
|
||||||
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
|
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
|
||||||
GITHUB_COM_TOKEN: ${{ secrets.GH_TOKEN }}
|
|
||||||
|
# Logging
|
||||||
LOG_LEVEL: debug
|
LOG_LEVEL: debug
|
||||||
LOG_FORMAT: json
|
LOG_FORMAT: json
|
||||||
RENOVATE_ENDPOINT: ${{ github.server_url }}
|
LOG_FILE_LEVEL: debug
|
||||||
RENOVATE_PLATFORM: gitea
|
|
||||||
RENOVATE_TOKEN: ${{ github.repository == 'jahanson/renovate-config' && secrets.TOKEN || secrets.GITHUB_TOKEN }}
|
# Host rules for registry authentication
|
||||||
RENOVATE_GIT_AUTHOR: 'Renovate Bot <smeagol@hsn.dev>'
|
|
||||||
RENOVATE_HOST_RULES: |-
|
RENOVATE_HOST_RULES: |-
|
||||||
[
|
[
|
||||||
{
|
{
|
||||||
"matchHost": "hub.docker.com",
|
"matchHost": "registry-1.docker.io",
|
||||||
"hostType": "",
|
"hostType": "docker",
|
||||||
"username": "${{ secrets.DOCKER_USERNAME }}",
|
"username": "${{ secrets.DOCKER_USERNAME }}",
|
||||||
"password": "${{ secrets.DOCKER_PASSWORD }}"
|
"password": "${{ secrets.DOCKER_PASSWORD }}"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"matchHost": "ghcr.io",
|
"matchHost": "ghcr.io",
|
||||||
"hostType": "",
|
"hostType": "docker",
|
||||||
"username": "${{ secrets.GH_USERNAME }}",
|
"username": "${{ secrets.GH_USERNAME }}",
|
||||||
"password": "${{ secrets.GH_TOKEN }}"
|
"password": "${{ secrets.GH_TOKEN }}"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"matchHost": "git.hsn.dev",
|
"matchHost": "git.hsn.dev",
|
||||||
"username": "${{ secrets.DOCKER_USERNAME }}",
|
"hostType": "gitea",
|
||||||
"token": "${{ secrets.MIRROR_TOKEN }}"
|
"token": "${{ secrets.MIRROR_TOKEN }}"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
GIT_AUTHOR_NAME: 'Renovate Bot'
|
|
||||||
GIT_AUTHOR_EMAIL: 'smeagol@hsn.dev'
|
# Command execution
|
||||||
GIT_COMMITTER_NAME: 'Renovate Bot'
|
|
||||||
GIT_COMMITTER_EMAIL: 'smeagol@hsn.dev'
|
|
||||||
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