Update workflow actions version.
@@ -25,11 +25,11 @@ jobs:
Starting build for commit [${{ github.sha }}](https://github.com/${{ github.repository }}/commit/${{ github.sha }}) by ${{ github.actor }}
>>> ${{ github.event.head_commit.message }}
- name: Checkout
- uses: actions/checkout@v2
+ uses: actions/checkout@v3
- name: Set up Python 3.8
- uses: actions/setup-python@v2
+ uses: actions/setup-python@v4
with:
- python-version: 3.8
+ python-version: '3.8'
- name: Install testing dependencies
run: |
python -m pip install --upgrade pip
@@ -38,18 +38,18 @@ jobs:
run: |
flake8 . --ignore=E501,E722,E126,E128,W503,E121 --exclude=migrations
- name: Set up QEMU
- uses: docker/setup-qemu-action@v1
+ uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
- uses: docker/setup-buildx-action@v1
+ uses: docker/setup-buildx-action@v2
- name: Cache Docker layers
- uses: actions/cache@v2
+ uses: actions/cache@v3
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ github.sha }}
restore-keys: |
${{ runner.os }}-buildx-
- name: Login to GHCR
- uses: docker/login-action@v1
+ uses: docker/login-action@v2
with:
# GitHub username and personal access token
registry: ghcr.io
@@ -57,7 +57,7 @@ jobs:
password: ${{ secrets.CR_PAT }}
- name: Build Docker image
id: docker_build
- uses: docker/build-push-action@v2
+ uses: docker/build-push-action@v3
with:
context: .
file: ./Dockerfile
