Skip to content

Commit

Permalink
X
Browse files Browse the repository at this point in the history
  • Loading branch information
mewim committed Sep 4, 2024
1 parent 390cbef commit 1d9be74
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 29 deletions.
30 changes: 1 addition & 29 deletions .github/workflows/build-extensions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -138,35 +138,7 @@ jobs:
# path: extension-artifacts

get-old-extensions:
runs-on: ubuntu-latest
steps:
- name: Free disk space on Ubuntu runner
uses: kfir4444/free-disk-space@main
with:
tool-cache: true
android: true
dotnet: true
haskell: true
large-packages: true
swap-storage: true

- name: Pull old extensions and run container
run: |
docker pull kuzudb/extension-repo:latest
docker run --rm -d --name kuzu-extensions kuzudb/extension-repo:latest tail -f /dev/null
- name: Copy old extensions
run: |
mkdir ./old-extensions
docker cp kuzu-extensions:/usr/share/nginx/html ./old-extensions
sudo chown -R $USER:$USER old-extensions
sudo chmod -R 755 old-extensions
- name: Upload old extensions
uses: actions/upload-artifact@v4
with:
name: old-extensions
path: old-extensions
uses: ./.github/workflows/get-extensions-from-dockerhub.yml

# update-extensions-repo:
# runs-on: ubuntu-latest
Expand Down
38 changes: 38 additions & 0 deletions .github/workflows/get-extensions-from-dockerhub.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Get-Extensions-From-Dockerhub
on:
workflow_dispatch:
workflow_call:

jobs:
get-current-extensions:
runs-on: ubuntu-latest
steps:
- name: Free disk space on Ubuntu runner
uses: kfir4444/free-disk-space@main
with:
tool-cache: true
android: true
dotnet: true
haskell: true
large-packages: true
swap-storage: true

- name: Pull current extensions and run container
run: |
docker pull kuzudb/extension-repo:latest
docker run --rm -d --name kuzu-extensions kuzudb/extension-repo:latest tail -f /dev/null
- name: Copy current extensions
run: |
mkdir ./current-extensions
docker cp kuzu-extensions:/usr/share/nginx/html ./current-extensions
sudo chown -R $USER:$USER current-extensions
sudo chmod -R 755 current-extensions
mv current-extensions/html/dataset current-extensions/dataset
mv current-extensions/html/ current-extensions/releases
- name: Upload current extensions
uses: actions/upload-artifact@v4
with:
name: current-extensions
path: current-extensions

0 comments on commit 1d9be74

Please sign in to comment.