From e70d5beb0d3235d25a52591feb63f41867e3a2fa Mon Sep 17 00:00:00 2001 From: Christy Jacob Date: Sat, 9 Sep 2023 01:29:56 +0000 Subject: [PATCH] chore: update ci file --- .github/workflows/tests.yml | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 5d83b4a2cc..cf0eaac4ac 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -42,25 +42,25 @@ jobs: load: true cache-from: type=gha cache-to: type=gha,mode=max - # outputs: type=docker,dest=/tmp/${{ env.IMAGE }}.tar + outputs: type=docker,dest=/tmp/${{ env.IMAGE }}.tar build-args: | DEBUG=false TESTING=true VERSION=dev - - name: Pull Docker Images - run: docker compose pull --ignore-pull-failures --ignore-buildable + # - name: Pull Docker Images + # run: docker compose pull --ignore-pull-failures --ignore-buildable - - name: List Files and images - run: | - docker compose config --images | sort -u - docker save $(docker compose config --images | sort -u) -o /tmp/allinone.tar + # - name: List Files and images + # run: | + # docker compose config --images | sort -u + # docker save $(docker compose config --images | sort -u) -o /tmp/allinone.tar - name: Cache Docker Image uses: actions/cache@v3 with: key: ${{ env.IMAGE }}-${{ github.sha }} - path: /tmp/allinone.tar + path: /tmp/${{ env.IMAGE }}.tar # - name: Upload Docker Image # uses: actions/upload-artifact@v3 @@ -84,12 +84,12 @@ jobs: uses: actions/cache@v3 with: key: ${{ env.IMAGE }}-${{ github.sha }} - path: /tmp/allinone.tar + path: /tmp/${{ env.IMAGE }}.tar fail-on-cache-miss: true - name: Load and Start Appwrite run: | - docker load --input /tmp/allinone.tar + docker load --input /tmp/${{ env.IMAGE }}.tar docker compose up -d sleep 10 @@ -122,12 +122,12 @@ jobs: uses: actions/cache@v3 with: key: ${{ env.IMAGE }}-${{ github.sha }} - path: /tmp/allinone.tar + path: /tmp/${{ env.IMAGE }}.tar fail-on-cache-miss: true - name: Load and Start Appwrite run: | - docker load --input /tmp/allinone.tar + docker load --input /tmp/${{ env.IMAGE }}.tar docker compose up -d sleep 20