From 795ff9748074f34e6414506bfd8885dc2718102c Mon Sep 17 00:00:00 2001 From: Darren Reid Date: Thu, 21 Nov 2024 09:05:51 +1100 Subject: [PATCH] Update release.yml --- .github/workflows/release.yml | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6a41086..f3a1b68 100755 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -76,17 +76,7 @@ jobs: driver-opts: image=moby/buildkit:master - name: Kamal bootstrap - run: kamal server bootstrap - - - name: Check if first run and execute kamal app boot if necessary - run: | - FIRST_RUN_FILE=".${{ env.repository_name }}" - if ! kamal server exec --no-interactive -q "test -f $FIRST_RUN_FILE"; then - kamal server exec --no-interactive -q "touch $FIRST_RUN_FILE" || true - kamal deploy -q -P --version latest || true - else - echo "Not first run, skipping kamal app boot" - fi + run: kamal setup -P - name: Ensure file permissions run: kamal server exec --no-interactive "mkdir -p /opt/docker/${{ env.repository_name }}/App_Data && chown -R 1654:1654 /opt/docker/${{ env.repository_name }}" @@ -98,4 +88,4 @@ jobs: - name: Deploy with Kamal run: | kamal lock release -v - kamal deploy -P --version latest \ No newline at end of file + kamal deploy -P --version latest