From b9e814d67fac17d7c480cd1aef149c6104d08876 Mon Sep 17 00:00:00 2001 From: Guillaume Chervet Date: Mon, 16 Sep 2024 22:39:16 +0200 Subject: [PATCH] Update docker_with_model.yml (#40) * Update docker_with_model.yml * Update docker_with_model.yml * Update main.yml * Update docker.yml * Update docker_with_model.yml * Update docker.yml * Update docker_with_model.yml --- .github/workflows/docker.yml | 6 +++--- .github/workflows/docker_with_model.yml | 21 +++++++++++++-------- .github/workflows/main.yml | 18 +++++++++--------- 3 files changed, 25 insertions(+), 20 deletions(-) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 6c2e9138..009c41ac 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -34,7 +34,7 @@ jobs: packages: write environment: MLOpsPython steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Log in to Docker Hub uses: docker/login-action@v2 @@ -51,7 +51,7 @@ jobs: - name: Build and push Docker image if: github.ref == 'refs/heads/main' - uses: docker/build-push-action@v3 + uses: docker/build-push-action@v4 with: context: ${{ inputs.image_context }} file : ${{ inputs.image_file }} @@ -62,7 +62,7 @@ jobs: - name: Build and push Docker image if: github.ref != 'refs/heads/main' - uses: docker/build-push-action@v3 + uses: docker/build-push-action@v4 with: context: ${{ inputs.image_context }} file : ${{ inputs.image_file }} diff --git a/.github/workflows/docker_with_model.yml b/.github/workflows/docker_with_model.yml index a27d74d7..87f83fed 100644 --- a/.github/workflows/docker_with_model.yml +++ b/.github/workflows/docker_with_model.yml @@ -50,17 +50,22 @@ jobs: packages: write environment: MLOpsPython steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v4 - name: Free disk space on Ubuntu runner 🔧 uses: kfir4444/free-disk-space@main with: - # frees about 6 GB, warning: may remove required tools + # this might remove tools that are actually needed, + # if set to "true" but frees about 6 GB tool-cache: false + + # all of these default to true, but feel free to set to + # "false" if necessary for your workflow android: true - dotnet: true - haskell: true - large-packages: true - swap-storage: true + dotnet: false + haskell: false + large-packages: false + docker-images: false + swap-storage: false - name: Set up Python 3.11 uses: actions/setup-python@v3 @@ -115,7 +120,7 @@ jobs: - name: Build and push Docker image if: github.ref == 'refs/heads/main' - uses: docker/build-push-action@v3 + uses: docker/build-push-action@v4 with: context: ${{ inputs.image_context }} file : ${{ inputs.image_file }} @@ -126,7 +131,7 @@ jobs: - name: Build and push Docker image if: github.ref != 'refs/heads/main' - uses: docker/build-push-action@v3 + uses: docker/build-push-action@v4 with: context: ${{ inputs.image_context }} file : ${{ inputs.image_file }} diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index abe84977..5585b265 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -28,7 +28,7 @@ jobs: lint: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: dorny/paths-filter@v2 id: filter_python with: @@ -59,7 +59,7 @@ jobs: packages_unit_tests: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up Python ${{ env.PYTHON_VERSION }} uses: actions/setup-python@v3 with: @@ -83,7 +83,7 @@ jobs: train_unit_tests: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up Python ${{ env.PYTHON_VERSION }} uses: actions/setup-python@v3 with: @@ -127,7 +127,7 @@ jobs: outputs: new_version: ${{ steps.tag.outputs.new_version }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Bump version and push tag id: tag_version if: github.ref == 'refs/heads/main' @@ -156,7 +156,7 @@ jobs: AZURE_LOCATION: ${{ env.AZURE_LOCATION }} DOCKER_REGISTRY: ${{ env.DOCKER_REGISTRY }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: fetch-depth: 0 - name: Set up Python ${{ env.PYTHON_VERSION }} @@ -282,7 +282,7 @@ jobs: runs-on: ubuntu-latest needs: [deploy, train] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up Python ${{ env.PYTHON_VERSION }} uses: actions/setup-python@v3 with: @@ -320,7 +320,7 @@ jobs: outputs: DOCKER_WEBAPP_IMAGE_NAME: ${{ env.DOCKER_REPOSITORY }}/${{ env.DOCKER_WEBAPP_IMAGE_NAME }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: dorny/paths-filter@v2 id: filter_webapp with: @@ -360,7 +360,7 @@ jobs: needs: [ integration_tests ] environment: MLOpsPython steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: token: ${{ secrets.GIT_TOKEN }} fetch-depth: 0 @@ -375,4 +375,4 @@ jobs: ./bin/generate-changelog.sh "$PROJECT_URL" git add ./CHANGELOG.md git commit -m "[skip ci] Generate changelog to version ${{ steps.tag.outputs.new_version }}" - git push -f --set-upstream origin "HEAD:main" --follow-tags \ No newline at end of file + git push -f --set-upstream origin "HEAD:main" --follow-tags