1
0
Fork 0
mirror of synced 2024-06-14 08:44:49 +12:00

chore: update ci file

This commit is contained in:
Christy Jacob 2023-09-09 01:29:56 +00:00
parent e390cf0d70
commit e70d5beb0d

View file

@ -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