From af0d8cd9ac04409548b065db535aca3ac36f20f3 Mon Sep 17 00:00:00 2001 From: Frank John Begornia Date: Sat, 13 Dec 2025 02:58:29 +0800 Subject: [PATCH] Add container specification and shell definitions to deployment workflows --- .gitea/workflows/build-push.yml | 2 ++ .gitea/workflows/deploy-dev.yml | 6 ++++++ .gitea/workflows/deploy.yml | 6 ++++++ 3 files changed, 14 insertions(+) diff --git a/.gitea/workflows/build-push.yml b/.gitea/workflows/build-push.yml index a80c2dc..06f3dab 100644 --- a/.gitea/workflows/build-push.yml +++ b/.gitea/workflows/build-push.yml @@ -9,6 +9,8 @@ on: jobs: build-and-push: runs-on: ubuntu-latest + container: + image: catthehacker/ubuntu:act-latest steps: - name: Checkout code diff --git a/.gitea/workflows/deploy-dev.yml b/.gitea/workflows/deploy-dev.yml index 3179e91..f376506 100644 --- a/.gitea/workflows/deploy-dev.yml +++ b/.gitea/workflows/deploy-dev.yml @@ -9,9 +9,12 @@ on: jobs: deploy: runs-on: ubuntu-latest + container: + image: catthehacker/ubuntu:act-latest steps: - name: Checkout code + shell: sh run: | git clone $GITHUB_SERVER_URL/$GITHUB_REPOSITORY.git /workspace/repo || true cd /workspace/repo @@ -20,12 +23,14 @@ jobs: git pull origin $GITHUB_REF_NAME - name: Build Docker Image + shell: sh run: | cd /workspace/repo docker build -t merchbay_admin:dev . docker save merchbay_admin:dev | gzip > merchbay_admin_dev.tar.gz - name: Setup SSH and Deploy + shell: sh run: | mkdir -p ~/.ssh printf '%s' "$DEPLOY_SSH_KEY" > ~/.ssh/deploy_key @@ -80,6 +85,7 @@ jobs: DEV_DB_PASSWORD: ${{ secrets.DEV_DB_PASSWORD }} - name: Health Check + shell: sh run: | sleep 10 curl -f https://dev.merchbay.app || exit 1 diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index cabbcb5..5d7e58a 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -10,9 +10,12 @@ on: jobs: deploy: runs-on: ubuntu-latest + container: + image: catthehacker/ubuntu:act-latest steps: - name: Checkout code + shell: sh run: | git clone $GITHUB_SERVER_URL/$GITHUB_REPOSITORY.git /workspace/repo || true cd /workspace/repo @@ -21,12 +24,14 @@ jobs: git pull origin $GITHUB_REF_NAME - name: Build Docker Image + shell: sh run: | cd /workspace/repo docker build -t merchbay_admin:latest . docker save merchbay_admin:latest | gzip > merchbay_admin.tar.gz - name: Setup SSH and Deploy + shell: sh run: | mkdir -p ~/.ssh printf '%s' "$PROD_DEPLOY_SSH_KEY" > ~/.ssh/deploy_key @@ -81,6 +86,7 @@ jobs: PROD_DB_PASSWORD: ${{ secrets.PROD_DB_PASSWORD }} - name: Health Check + shell: sh run: | sleep 10 curl -f https://merchbay.com || exit 1