Skip to content

Commit

Permalink
upterm
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexSkrypnyk committed Sep 5, 2024
1 parent 82257aa commit c86d568
Showing 1 changed file with 21 additions and 18 deletions.
39 changes: 21 additions & 18 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,30 +58,33 @@ jobs:
pwd
ls -al
apt update
apt install sudo
apt install sudo ssh -y
- run: |
ssh-keygen -t ed25519 -f ${HOME}/.ssh/id_ed255191 -N ""
- name: Setup upterm session
uses: lhotari/action-upterm@v1
with:
wait-timeout-minutes: 5

- name: Export DB
run: |
[ ! -f /tmp/download-db-success ] && echo "==> Database download semaphore file is missing. DB export will not proceed." && exit 0
# ./scripts/vortex/login-container-registry.sh
# echo "==> Starting stack"
docker compose up --detach
sleep 15
# docker compose exec cli mkdir -p .data && docker compose cp -L .data/db.sql cli:/app/.data/db.sql || true
# docker compose exec cli bash -c "VORTEX_PROVISION_POST_OPERATIONS_SKIP=1 ./scripts/vortex/provision.sh"
# ./scripts/vortex/export-db.sh db.sql
timeout-minutes: 30

- name: Upload Database as an artifact
uses: actions/upload-artifact@v4
with:
name: database
path: .data/db.sql
# - name: Export DB
# run: |
# [ ! -f /tmp/download-db-success ] && echo "==> Database download semaphore file is missing. DB export will not proceed." && exit 0
# # ./scripts/vortex/login-container-registry.sh
# # echo "==> Starting stack"
# docker compose up --detach
# sleep 15
# # docker compose exec cli mkdir -p .data && docker compose cp -L .data/db.sql cli:/app/.data/db.sql || true
# # docker compose exec cli bash -c "VORTEX_PROVISION_POST_OPERATIONS_SKIP=1 ./scripts/vortex/provision.sh"
# # ./scripts/vortex/export-db.sh db.sql
# timeout-minutes: 30
#
# - name: Upload Database as an artifact
# uses: actions/upload-artifact@v4
# with:
# name: database
# path: .data/db.sql


# - name: Save DB Cache
Expand Down

0 comments on commit c86d568

Please sign in to comment.