diff options
author | 2023-01-16 15:37:59 -0800 | |
---|---|---|
committer | 2023-01-16 15:37:59 -0800 | |
commit | 37e69d7e839c0a2d7d8fe1c323fb54ec0e8852a7 (patch) | |
tree | 52af81246a11b10f8b1280196daabc93954c1086 /.github | |
parent | Use `extend-ignore` instead of `ignore` in flake8 config (diff) | |
parent | Merge pull request #844 from python-discord/dependabot/github_actions/HassanA... (diff) |
Merge branch 'main' into ignore-to-extend-ignore
Diffstat (limited to '.github')
-rw-r--r-- | .github/dependabot.yml | 5 | ||||
-rw-r--r-- | .github/workflows/build.yaml | 4 | ||||
-rw-r--r-- | .github/workflows/deploy.yaml | 7 | ||||
-rw-r--r-- | .github/workflows/lint-test.yaml | 7 | ||||
-rw-r--r-- | .github/workflows/sentry-release.yml | 2 | ||||
-rw-r--r-- | .github/workflows/static-preview.yaml | 6 |
6 files changed, 19 insertions, 12 deletions
diff --git a/.github/dependabot.yml b/.github/dependabot.yml index b38df29f..10c6e918 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -4,3 +4,8 @@ updates: directory: "/" schedule: interval: "daily" + + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "daily" diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index ab7321de..4cd68d83 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -23,7 +23,7 @@ jobs: echo "::set-output name=tag::$tag" - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v3 # The current version (v2) of Docker's build-push action uses # buildx, which comes with BuildKit features that help us speed @@ -32,7 +32,7 @@ jobs: # # See https://github.com/docker/build-push-action - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v1 + uses: docker/setup-buildx-action@v2 - name: Login to Github Container Registry uses: docker/login-action@v1 diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index 57712dc7..ea5e0303 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -26,10 +26,12 @@ jobs: # deployment.yaml file using a GitHub Personal Access # Token to get access. - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: repository: python-discord/kubernetes + - uses: azure/setup-kubectl@v3 + - name: Authenticate with Kubernetes uses: azure/k8s-set-context@v1 with: @@ -37,12 +39,11 @@ jobs: kubeconfig: ${{ secrets.KUBECONFIG }} - name: Deploy to Kubernetes - uses: Azure/k8s-deploy@v1 + uses: Azure/k8s-deploy@v4 with: manifests: | namespaces/default/site/deployment.yaml images: 'ghcr.io/python-discord/site:${{ steps.sha_tag.outputs.tag }}' - kubectl-version: 'latest' - name: Purge Cloudflare Edge Cache uses: jakejarvis/cloudflare-purge-action@master diff --git a/.github/workflows/lint-test.yaml b/.github/workflows/lint-test.yaml index f82e1d4f..4f262a85 100644 --- a/.github/workflows/lint-test.yaml +++ b/.github/workflows/lint-test.yaml @@ -13,12 +13,13 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Install Python Dependencies - uses: HassanAbouelela/actions/setup-python@setup-python_v1.3.1 + uses: HassanAbouelela/actions/setup-python@setup-python_v1.4.0 with: dev: true + install_args: "--with dev" python_version: '3.10' # Start the database early to give it a chance to get ready before @@ -85,7 +86,7 @@ jobs: - name: Upload a Build Artifact if: always() && steps.prepare-artifact.outcome == 'success' continue-on-error: true - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v3 with: name: pull-request-payload path: pull_request_payload.json diff --git a/.github/workflows/sentry-release.yml b/.github/workflows/sentry-release.yml index a3df5b1a..6521c389 100644 --- a/.github/workflows/sentry-release.yml +++ b/.github/workflows/sentry-release.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout code - uses: actions/checkout@main + uses: actions/checkout@v3 - name: Create a Sentry.io release uses: tclindner/[email protected] env: diff --git a/.github/workflows/static-preview.yaml b/.github/workflows/static-preview.yaml index 52d7df5a..e542f81d 100644 --- a/.github/workflows/static-preview.yaml +++ b/.github/workflows/static-preview.yaml @@ -12,7 +12,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 # Create a commit SHA-based tag for the container repositories - name: Create SHA Container Tag @@ -22,7 +22,7 @@ jobs: echo "::set-output name=tag::$tag" - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v1 + uses: docker/setup-buildx-action@v2 - name: Login to Github Container Registry uses: docker/login-action@v1 @@ -70,7 +70,7 @@ jobs: STATIC_BUILD=TRUE - name: Upload Build - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v3 with: name: static-build path: docker_build/app/build/ |