aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--.github/workflows/deploy.yml15
-rw-r--r--.github/workflows/lint.yml6
2 files changed, 10 insertions, 11 deletions
diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml
index dbb3d4d..74ba293 100644
--- a/.github/workflows/deploy.yml
+++ b/.github/workflows/deploy.yml
@@ -22,13 +22,13 @@ jobs:
echo "::set-output name=tag::$tag"
- name: Checkout code
- uses: actions/checkout@v2
+ uses: actions/checkout@v3
- 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
+ uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
@@ -38,7 +38,7 @@ jobs:
# Github Container Registry tagged with "latest" and
# the short SHA of the commit.
- name: Build and push
- uses: docker/build-push-action@v2
+ uses: docker/build-push-action@v4
with:
context: .
file: ./Dockerfile
@@ -48,16 +48,17 @@ jobs:
ghcr.io/python-discord/metricity:latest
ghcr.io/python-discord/metricity:${{ steps.sha_tag.outputs.tag }}
+ - uses: azure/setup-kubectl@v3
+
- name: Authenticate with Kubernetes
- uses: azure/k8s-set-context@v1
+ uses: azure/k8s-set-context@v3
with:
method: kubeconfig
kubeconfig: ${{ secrets.KUBECONFIG }}
- name: Deploy to Kubernetes
- uses: Azure/k8s-deploy@v1
+ uses: Azure/k8s-deploy@v4
with:
manifests: |
deployment.yaml
images: 'ghcr.io/python-discord/metricity:${{ steps.sha_tag.outputs.tag }}'
- kubectl-version: 'latest'
diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml
index 4435317..39097f6 100644
--- a/.github/workflows/lint.yml
+++ b/.github/workflows/lint.yml
@@ -20,13 +20,11 @@ jobs:
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- name: Checkout branch
- 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.1
with:
- # Set dev=true to install flake8 extensions, which are dev dependencies
- dev: true
python_version: '3.10'
- name: Lint code with ruff