Skip to content

Commit

Permalink
Bump CI 3rd party actions to latest
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisLovering committed Jan 24, 2024
1 parent 371aa39 commit f378518
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 31 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
# The version script relies on history. Fetch 100 commits to be safe.
fetch-depth: 100
Expand All @@ -37,10 +37,10 @@ jobs:
# which comes with BuildKit. It has cache features which can speed up
# the builds. 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: Log in to GitHub Container Registry
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
Expand Down Expand Up @@ -74,7 +74,7 @@ jobs:
# If configured by the cache_config step, also cache the layers in
# GitHub Actions.
- name: Build image for linting and testing
uses: docker/build-push-action@v3
uses: docker/build-push-action@v5
with:
context: .
file: ./Dockerfile
Expand All @@ -92,7 +92,7 @@ jobs:
# Make the image available as an artifact so other jobs will be able to
# download it.
- name: Upload image archive as an artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: ${{ env.artifact }}
path: ${{ env.artifact }}.tar
Expand Down
18 changes: 8 additions & 10 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:

steps:
- name: Download image artifact
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: ${{ inputs.artifact }}

Expand All @@ -27,25 +27,25 @@ jobs:
run: docker load -i ${{ inputs.artifact }}.tar

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

- name: Log in 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: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
# The version script relies on history. Fetch 100 commits to be safe.
fetch-depth: 100

# Build the final production image and push it to GHCR.
# Tag it with both the short commit SHA and 'latest'.
- name: Build final image
uses: docker/build-push-action@v3
uses: docker/build-push-action@v5
with:
context: .
file: ./Dockerfile
Expand All @@ -61,9 +61,7 @@ jobs:
# Deploy to Kubernetes.
- name: Install kubectl
uses: azure/[email protected]
with:
version: "latest"
uses: azure/setup-kubectl@v3

- name: Authenticate with Kubernetes
uses: azure/k8s-set-context@v3
Expand All @@ -79,7 +77,7 @@ jobs:

# Push the base image to GHCR, with an inline cache manifest.
- name: Push base image
uses: docker/build-push-action@v3
uses: docker/build-push-action@v5
with:
context: .
file: ./Dockerfile
Expand All @@ -93,7 +91,7 @@ jobs:
# Push the venv image to GHCR, with an inline cache manifest.
- name: Push venv image
uses: docker/build-push-action@v3
uses: docker/build-push-action@v5
with:
context: .
file: ./Dockerfile
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set up Python
id: python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: "3.11"
cache: pip
Expand All @@ -25,7 +25,7 @@ jobs:
run: pip install -U -r requirements/lint.pip

- name: Pre-commit environment cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ${{ env.PRE_COMMIT_HOME }}
key: "precommit-0-${{ runner.os }}-${{ env.PRE_COMMIT_HOME }}-\
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/sentry_release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
# The version script relies on history. Fetch 100 commits to be safe.
fetch-depth: 100
Expand Down
25 changes: 13 additions & 12 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:

steps:
- name: Download image artifact
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: ${{ inputs.artifact }}

Expand All @@ -27,7 +27,7 @@ jobs:

# Needed for the Docker Compose file.
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4

# Memory limit tests would fail if this isn't disabled.
- name: Disable swap memory
Expand All @@ -47,9 +47,9 @@ jobs:
# Upload it so the coverage from all matrix jobs can be combined later.
- name: Upload coverage data
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: coverage
name: coverage-${{ matrix.os }}
path: .coverage.*
retention-days: 1

Expand All @@ -60,10 +60,10 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: "3.11"
cache: pip
Expand All @@ -73,9 +73,10 @@ jobs:
run: pip install -U -r requirements/coverage.pip

- name: Download coverage data
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: coverage
pattern: coverage-*
merge-multiple: true

- name: Combine coverage data
run: coverage combine .coverage.*
Expand All @@ -89,18 +90,18 @@ jobs:
# Comment on the PR with the coverage results and register a GitHub check
# which links to the coveralls.io job.
- name: Publish coverage report to coveralls.io
uses: coverallsapp/github-action@1.1.3
uses: coverallsapp/github-action@v2.2.3
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: ./coverage.lcov
format: lcov

dry-run-deploy:
name: Dry run deployment.yaml init container
runs-on: ubuntu-latest
needs: test
steps:
- name: Download image artifact
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: ${{ inputs.artifact }}

Expand All @@ -109,7 +110,7 @@ jobs:

# Needed for the Docker Compose file.
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4

# Install eval deps the same way as init container from deployment.yaml
# This is to ensure that deployment won't fail at that step
Expand Down

0 comments on commit f378518

Please sign in to comment.