osbuild-worker: add CHANNEL to worker logs

aka "the deployment channel" like "staging" or "production"
This commit is contained in:
Florian Schüller 2024-08-21 10:24:21 +02:00 committed by Florian Schüller
parent 2519e55ccd
commit 8d24dcfbde
4 changed files with 22 additions and 0 deletions

View file

@ -20,6 +20,7 @@ jq -r ".client_secret" /tmp/client-credentials.json > /etc/osbuild-worker/client
rm -f /tmp/client-credentials.json
sudo tee -a /etc/osbuild-worker/osbuild-worker.toml > /dev/null << EOF
deployment_channel = "${CHANNEL:-local}"
[authentication]
oauth_url = "${TOKEN_URL:-https://sso.redhat.com/auth/realms/redhat-external/protocol/openid-connect/token}"
client_id = "${CLIENT_ID}"