Skip to content

Commit

Permalink
Merge pull request #11 from ddoddii/develop
Browse files Browse the repository at this point in the history
⚡️ Improve workflow time
  • Loading branch information
ddoddii authored Jan 11, 2024
2 parents cb60246 + f05ebe2 commit 2145507
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,15 @@ jobs:
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
-
name : Cache Docker layers
id : cache
uses : actions/cache@v3
with :
path : /tmp/.buildx-cache
key: ${{ runner.os }}-docker-${{ hashFiles('**/Dockerfile', '**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-docker-
-
# Build and push to dockerhub
name: Build and push
Expand Down
2 changes: 1 addition & 1 deletion dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ WORKDIR /app/

COPY ./requirements.txt /app/

RUN pip install -r requirements.txt
RUN pip install --no-cache-dir -r requirements.txt

VOLUME /app/resume-db

Expand Down

0 comments on commit 2145507

Please sign in to comment.