diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index bfea3be..fdad361 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,15 +1,15 @@ name: CI on: push: - branches: [ main ] + branches: [main] pull_request: types: [opened, synchronize, reopened] paths-ignore: - - 'README.md' - - 'LICENSE.md' - - '.gitignore' - - 'CODEOWNERS' - - 'renovate.json' + - "README.md" + - "LICENSE.md" + - ".gitignore" + - "CODEOWNERS" + - "renovate.json" jobs: ci: diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index abe877b..3d8899c 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -1,19 +1,19 @@ name: Build on: push: - branches: [ main ] + branches: [main] -jobs: +jobs: build: name: GitHub Container Registry runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - name: Login to GitHub Container Registry - run: echo ${{ secrets.PAT }} | docker login ghcr.io -u luketainton --password-stdin - - name: Build image for GitHub Package Registry - run: docker build . --file Dockerfile --tag ghcr.io/luketainton/roboluke-tasks:${{ github.sha }} --tag ghcr.io/luketainton/roboluke-tasks:latest - - name: Push image to GitHub Package Registry - run: | - docker push ghcr.io/luketainton/roboluke-tasks:latest - docker push ghcr.io/luketainton/roboluke-tasks:${{ github.sha }} + - uses: actions/checkout@v3 + - name: Login to GitHub Container Registry + run: echo ${{ secrets.GHCR_ACCESS_TOKEN }} | docker login ghcr.io -u luketainton --password-stdin + - name: Build image for GitHub Package Registry + run: docker build . --file Dockerfile --tag ghcr.io/luketainton/roboluke-tasks:${{ github.sha }} --tag ghcr.io/luketainton/roboluke-tasks:latest + - name: Push image to GitHub Package Registry + run: | + docker push ghcr.io/luketainton/roboluke-tasks:latest + docker push ghcr.io/luketainton/roboluke-tasks:${{ github.sha }} diff --git a/app/utils/config.py b/app/utils/config.py index 7b49e27..27f6e32 100644 --- a/app/utils/config.py +++ b/app/utils/config.py @@ -1,6 +1,5 @@ #!/usr/bin/env python3 - import os diff --git a/renovate.json b/renovate.json index e2cb0cc..4eaf727 100644 --- a/renovate.json +++ b/renovate.json @@ -1,26 +1,42 @@ { - "extends": ["config:base"], + "extends": [ + "config:base" + ], "platformCommit": true, "dependencyDashboardAutoclose": true, "assignAutomerge": true, "assigneesFromCodeOwners": true, "rebaseWhen": "behind-base-branch", "rollbackPrs": true, - "labels": ["dependencies"], + "labels": [ + "dependencies" + ], "packageRules": [ { - "matchPackagePatterns": ["black", "pylint"], - "labels": ["linting"] + "matchPackagePatterns": [ + "black", + "pylint" + ], + "labels": [ + "linting" + ] }, { - "matchPackagePatterns": ["coverage", "pytest"], - "labels": ["unit-tests"] + "matchPackagePatterns": [ + "coverage", + "pytest" + ], + "labels": [ + "unit-tests" + ] } ], "vulnerabilityAlerts": { "enabled": true, - "labels": ["security"], + "labels": [ + "security" + ], "commitMessagePrefix": "[SECURITY] ", "prCreation": "immediate" } -} +} \ No newline at end of file