Skip to content

Commit

Permalink
Update CI to latest step versions
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisLovering committed Dec 6, 2023
1 parent 2eff2c7 commit 9a1a10f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/build-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4

# The current version (v2) of Docker's build-push action uses
# buildx, which comes with BuildKit features that help us speed
Expand All @@ -24,17 +24,17 @@ jobs:
# See https://github.com/docker/build-push-action

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v3

- name: Login to Github Container Registry
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Generate docker image metadata
uses: docker/metadata-action@v4
uses: docker/metadata-action@v5
id: meta
with:
images: ghcr.io/python-discord/metricity
Expand All @@ -45,7 +45,7 @@ jobs:
type=semver,pattern=v{{major}},enable=${{ startsWith(github.ref, 'refs/tags/v') }}
- name: Build and push
uses: docker/build-push-action@v4
uses: docker/build-push-action@v5
with:
context: .
file: ./Dockerfile
Expand All @@ -63,7 +63,7 @@ jobs:
if: ${{ github.ref == 'refs/heads/main' }}
steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4

- uses: azure/setup-kubectl@v3

Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout branch
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Install Python Dependencies
uses: HassanAbouelela/actions/setup-python@setup-python_v1.4.1
uses: HassanAbouelela/actions/setup-python@setup-python_v1.4.2
with:
python_version: '3.11'

- name: Run pre-commit hooks
run: SKIP=ruff pre-commit run --all-files

- name: Lint code with ruff
run: ruff check --format=github .
run: ruff check --output-format=github .

0 comments on commit 9a1a10f

Please sign in to comment.