Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: CI
on: { pull_request: { }, push: { branches: [ main ] } }
concurrency:
group: ${{ github.head_ref || github.ref }}
cancel-in-progress: true
jobs:
setup-build:
uses: infrabits/ci-setup-tox-env/.github/workflows/setup.yml@main

execute-lint:
needs: [setup-build]
uses: infrabits/ci-run-tox-env/.github/workflows/run.yml@main
with:
environments: ${{ needs.setup-build.outputs.lint }}
9 changes: 2 additions & 7 deletions fabfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,16 +52,11 @@ def update_mysql_credentials(c):
else:
print(f"Failed to find credentials under {tool_name}")

credentials = json.dumps(
[
{"user": username, "pass": password}
for username, password in database_credentials
]
)
credentials = json.dumps([{"user": username, "pass": password} for username, password in database_credentials])

tool_connection = _get_connection("cluebotng")
tool_connection.sudo(
f"XDG_CONFIG_HOME=/data/project/cluebotng toolforge envvars create CBNG_BOT_MYSQL_CREDENTIALS",
"XDG_CONFIG_HOME=/data/project/cluebotng toolforge envvars create CBNG_BOT_MYSQL_CREDENTIALS",
in_stream=StringIO(credentials),
hide="stdout",
)
Loading
Loading