Skip to content

Commit

Permalink
update github workflows to latest versions
Browse files Browse the repository at this point in the history
  • Loading branch information
dimoschi committed Apr 3, 2024
1 parent e5f4b90 commit bfa8a53
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 14 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,20 +17,20 @@ jobs:
DOCKER_IMAGE: ghcr.io/hackthebox/hackster:base
steps:
- name: Checkout repo
uses: actions/checkout@v3.5.0
uses: actions/checkout@v4

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

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

- name: Build image
uses: docker/build-push-action@v4
uses: docker/build-push-action@v5
with:
push: true
context: .
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,17 @@ jobs:
DEPLOYMENT_NAME: ${{ (contains(github.ref, '-rc')) && 'hackster-dev' || 'hackster' }}
steps:
- name: Checkout repo
uses: actions/checkout@v3.5.0
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v3
- name: Login to ghcr.io
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build image
uses: docker/build-push-action@v4
uses: docker/build-push-action@v5
with:
push: true
context: .
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Test

on: [ push, workflow_dispatch ]
on: [push, workflow_dispatch]

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand All @@ -12,11 +12,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3.5.0
uses: actions/checkout@v4

- id: setup-python
name: Set up Python 3.11
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: 3.11

Expand All @@ -31,7 +31,7 @@ jobs:
# Only when the context is exactly the same, we will restore the cache.
- name: Load cached venv
id: restore-poetry-dependencies
uses: actions/cache/restore@v3.3.1
uses: actions/cache/restore@v4
with:
path: .venv
key: venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }}
Expand All @@ -43,7 +43,7 @@ jobs:
- id: cache-poetry-dependencies
name: Cache venv
if: steps.restore-poetry-dependencies.outputs.cache-hit != 'true'
uses: actions/cache/save@v3.3.1
uses: actions/cache/save@v4
with:
path: .venv
key: venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }}
Expand All @@ -54,4 +54,4 @@ jobs:
poetry run task coverage xml
- name: Upload coverage reports to CodeCov
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4

0 comments on commit bfa8a53

Please sign in to comment.