From 4fe7bf2886ed43670ba00af942ac5ea97b3da95b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Let=C3=ADcia=20Alves=20de=20Pontes?= <50830736+leticia-pontes@users.noreply.github.com> Date: Sun, 1 Dec 2024 10:11:40 -0300 Subject: [PATCH] Update ci.yml --- .github/workflows/ci.yml | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index bbab49b..8a55938 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,22 +1,20 @@ -name: CI/CD Pipeline - -on: - push: - branches: - - develop - pull_request: - branches: - - main - jobs: build-and-push: name: Build and Push Docker Image - runs-on: windows-latest + runs-on: ubuntu-latest steps: - name: Checkout repository uses: actions/checkout@v3 + - name: Cache pip dependencies + uses: actions/cache@v3 + with: + path: ~/.cache/pip + key: ${{ runner.os }}-pip-${{ hashFiles('requirements.txt') }} + restore-keys: | + ${{ runner.os }}-pip- + - name: Log in to DockerHub uses: docker/login-action@v2 with: