Skip to content

Commit

Permalink
Update python-app.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
VoronM1522 authored Feb 5, 2025
1 parent 53520ee commit 79a9c81
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,14 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Cache Gradle packages
- name: Cache python
uses: actions/cache@v4
with:
path: |
~/.gradle/caches
path: ~/.cache/pip
key: ubuntu-python-${{ hashFiles('app_python/requirements.txt') }}
restore-keys: |
ubuntu-python-
- uses: actions/checkout@v3

- name: Set up python
Expand Down Expand Up @@ -46,6 +48,14 @@ jobs:
username: ${{ env.USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}

- name: Cache Docker layers
uses: actions/cache@v3
with:
path: /tmp/.buildx-cache
key: ubuntu-docker-${{ hashFiles('app_python/Dockerfile') }}
restore-keys: |
ubuntu-docker-
- name: Build and push Docker image
uses: docker/build-push-action@v4
with:
Expand Down

0 comments on commit 79a9c81

Please sign in to comment.