From 5e4ba6c96a466e18d46a6e014e7712e306db92b7 Mon Sep 17 00:00:00 2001 From: Kirill Starkov Date: Mon, 23 Dec 2024 19:45:35 +0800 Subject: [PATCH] fix backup step in cicd --- .github/workflows/build.yml | 3 +++ .github/workflows/nightly.yml | 14 -------------- .github/workflows/release.yml | 14 -------------- 3 files changed, 3 insertions(+), 28 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 098e71d2..f9670afa 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -24,6 +24,9 @@ jobs: version: ${{ steps.properties.outputs.version }} changelog: ${{ steps.properties.outputs.changelog }} steps: + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + - name: Backup docker files run: | echo "backup moby/buildkit image" diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index a7377238..23e01c45 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -12,12 +12,6 @@ jobs: version: ${{ steps.properties.outputs.version }} changelog: ${{ steps.properties.outputs.changelog }} steps: - - name: Backup docker files - run: | - echo "backup moby/buildkit image" - sudo docker image save -o ${GITHUB_WORKSPACE}/images.tar moby/buildkit - echo "Back up /var/lib/docker folder structure and other files" - sudo rsync -aPq /var/lib/docker/ ${GITHUB_WORKSPACE}/docker # Free GitHub Actions Environment Disk Space - name: Maximize build space uses: easimon/maximize-build-space@master @@ -31,14 +25,6 @@ jobs: remove-codeql: 'true' build-mount-path: '/var/lib/docker/' - - name: Restore docker files - run: | - sudo rsync -aPq ${GITHUB_WORKSPACE}/docker/ /var/lib/docker - sudo rm -rf ${GITHUB_WORKSPACE}/docker - sudo ls ${GITHUB_WORKSPACE} -l - sudo docker image load -i ${GITHUB_WORKSPACE}/images.tar - sudo rm ${GITHUB_WORKSPACE}/images.tar - - name: Checkout uses: actions/checkout@v4 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 81b84672..4162faa5 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -13,12 +13,6 @@ jobs: version: ${{ steps.properties.outputs.version }} changelog: ${{ steps.properties.outputs.changelog }} steps: - - name: Backup docker files - run: | - echo "backup moby/buildkit image" - sudo docker image save -o ${GITHUB_WORKSPACE}/images.tar moby/buildkit - echo "Back up /var/lib/docker folder structure and other files" - sudo rsync -aPq /var/lib/docker/ ${GITHUB_WORKSPACE}/docker # Free GitHub Actions Environment Disk Space - name: Maximize build space uses: easimon/maximize-build-space@master @@ -32,14 +26,6 @@ jobs: remove-codeql: 'true' build-mount-path: '/var/lib/docker/' - - name: Restore docker files - run: | - sudo rsync -aPq ${GITHUB_WORKSPACE}/docker/ /var/lib/docker - sudo rm -rf ${GITHUB_WORKSPACE}/docker - sudo ls ${GITHUB_WORKSPACE} -l - sudo docker image load -i ${GITHUB_WORKSPACE}/images.tar - sudo rm ${GITHUB_WORKSPACE}/images.tar - - name: Checkout uses: actions/checkout@v4