From 3ecb9b29941cefc3709d3b2b7e22345a6ab35812 Mon Sep 17 00:00:00 2001 From: Corwin Perren Date: Wed, 9 Jul 2025 02:11:04 -0700 Subject: [PATCH 1/7] Commonize builds, add staging build --- .../{build.yaml => build-common.yaml} | 48 +++++++++++++++---- .gitea/workflows/build-production.yaml | 10 ++++ .gitea/workflows/build-staging.yaml | 10 ++++ 3 files changed, 59 insertions(+), 9 deletions(-) rename .gitea/workflows/{build.yaml => build-common.yaml} (60%) create mode 100644 .gitea/workflows/build-production.yaml create mode 100644 .gitea/workflows/build-staging.yaml diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build-common.yaml similarity index 60% rename from .gitea/workflows/build.yaml rename to .gitea/workflows/build-common.yaml index ac2025e..b2b9855 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build-common.yaml @@ -1,7 +1,12 @@ name: Build and Test + on: - push: - branches: [main] + workflow_call: + inputs: + build_environment: + description: "The build environment (e.g., staging, production)" + required: false + default: "development" jobs: determine_version: @@ -10,6 +15,8 @@ jobs: repo_name: ${{ steps.project_metadata.outputs.REPO_NAME }} repo_version_hash: ${{ steps.project_metadata.outputs.REPO_VERSION_HASH }} project_version: ${{ steps.project_metadata.outputs.PROJECT_VERSION }} + docker_tags: ${{ steps.generate_docker_tags.outputs.DOCKER_TAGS }} + docker_deploy_target: ${{ steps.generate_docker_deployment_target.outputs.DOCKER_DEPLOY_TARGET }} steps: - name: Checkout Repository uses: actions/checkout@v4 @@ -24,6 +31,32 @@ jobs: echo REPO_VERSION_HASH=$(git describe --tags --always | sed 's/^v//') >> $GITHUB_OUTPUT echo PROJECT_VERSION=$(npm pkg get version --workspaces=false | tr -d \") >> $GITHUB_OUTPUT + - name: Generate Docker Tags + id: generate_docker_tags + run: | + DOCKER_TAGS="" + + if [ "${{ inputs.build_environment }}" = "staging" ]; then + DOCKER_TAGS=("gitea.perren.cloud/caperren/caperren-com:latest-staging") + else + DOCKER_TAGS=("gitea.perren.cloud/caperren/caperren-com:${{ steps.project_metadata.outputs.REPO_VERSION_HASH }},") + DOCKER_TAGS+=("gitea.perren.cloud/caperren/caperren-com:${{ steps.project_metadata.outputs.PROJECT_VERSION }},") + DOCKER_TAGS+=("gitea.perren.cloud/caperren/caperren-com:latest") + fi + + echo DOCKER_TAGS >> $GITHUB_OUTPUT + + - name: Generate Docker Deployment Target + id: generate_docker_deployment_target + run: | + if [ "${{ inputs.build_environment }}" = "staging" ]; then + DOCKER_DEPLOY_TARGET=caperren-com-staging + else + DOCKER_DEPLOY_TARGET="caperren-com" + fi + + echo $DOCKER_DEPLOY_TARGET >> $GITHUB_OUTPUT + build_and_push: runs-on: ubuntu-latest needs: determine_version @@ -48,10 +81,7 @@ jobs: with: context: caperren-com push: true - tags: | - gitea.perren.cloud/caperren/${{ needs.determine_version.outputs.repo_name }}:${{ needs.determine_version.outputs.repo_version_hash }} - gitea.perren.cloud/caperren/${{ needs.determine_version.outputs.repo_name }}:${{ needs.determine_version.outputs.project_version }} - gitea.perren.cloud/caperren/caperren-com:latest + tags: ${{ needs.determine_version.outputs.docker_tags }} test: runs-on: ubuntu-latest @@ -71,7 +101,7 @@ jobs: -H 'Authorization: Bearer ${{ secrets.TRUENAS_CAPERRENCOM_API_KEY }}' \ -H 'Content-Type: application/json' \ -d '{ - "name": "caperren-com", + "name": "${{ needs.determine_version.outputs.docker_deploy_target }}", "options": {} }' - name: Stop App @@ -81,7 +111,7 @@ jobs: -H 'accept: */*' \ -H 'Authorization: Bearer ${{ secrets.TRUENAS_CAPERRENCOM_API_KEY }}' \ -H 'Content-Type: application/json' \ - -d '"caperren-com"' + -d '"${{ needs.determine_version.outputs.docker_deploy_target }}"' - name: Start App run: | curl -k -X 'POST' \ @@ -89,4 +119,4 @@ jobs: -H 'accept: */*' \ -H 'Authorization: Bearer ${{ secrets.TRUENAS_CAPERRENCOM_API_KEY }}' \ -H 'Content-Type: application/json' \ - -d '"caperren-com"' + -d '"${{ needs.determine_version.outputs.docker_deploy_target }}"' diff --git a/.gitea/workflows/build-production.yaml b/.gitea/workflows/build-production.yaml new file mode 100644 index 0000000..ba51d70 --- /dev/null +++ b/.gitea/workflows/build-production.yaml @@ -0,0 +1,10 @@ +name: Build and Test Production +on: + push: + branches: [main] + +jobs: + build_test_deploy: + uses: ./.gitea/workflows/build-common.yaml + with: + build_environment: production \ No newline at end of file diff --git a/.gitea/workflows/build-staging.yaml b/.gitea/workflows/build-staging.yaml new file mode 100644 index 0000000..a1328b8 --- /dev/null +++ b/.gitea/workflows/build-staging.yaml @@ -0,0 +1,10 @@ +name: Build and Test Staging +on: + pull_request: + types: [ opened, synchronize, reopened ] + +jobs: + build_test_deploy: + uses: ./.gitea/workflows/build-common.yaml + with: + build_environment: staging \ No newline at end of file -- 2.49.1 From 548118e13e32338edaab7466334af9382cc7a5a7 Mon Sep 17 00:00:00 2001 From: Corwin Perren Date: Wed, 9 Jul 2025 02:18:05 -0700 Subject: [PATCH 2/7] Add missing $ --- .gitea/workflows/build-common.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/build-common.yaml b/.gitea/workflows/build-common.yaml index b2b9855..078f752 100644 --- a/.gitea/workflows/build-common.yaml +++ b/.gitea/workflows/build-common.yaml @@ -44,11 +44,13 @@ jobs: DOCKER_TAGS+=("gitea.perren.cloud/caperren/caperren-com:latest") fi - echo DOCKER_TAGS >> $GITHUB_OUTPUT + echo $DOCKER_TAGS >> $GITHUB_OUTPUT - name: Generate Docker Deployment Target id: generate_docker_deployment_target run: | + DOCKER_DEPLOY_TARGET="" + if [ "${{ inputs.build_environment }}" = "staging" ]; then DOCKER_DEPLOY_TARGET=caperren-com-staging else -- 2.49.1 From bb39ed567f77785a63977cc6ee0e93bf04f1eb85 Mon Sep 17 00:00:00 2001 From: Corwin Perren Date: Wed, 9 Jul 2025 02:22:05 -0700 Subject: [PATCH 3/7] No longer using array in bash docker tag generation --- .gitea/workflows/build-common.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/build-common.yaml b/.gitea/workflows/build-common.yaml index 078f752..51c01a9 100644 --- a/.gitea/workflows/build-common.yaml +++ b/.gitea/workflows/build-common.yaml @@ -37,11 +37,11 @@ jobs: DOCKER_TAGS="" if [ "${{ inputs.build_environment }}" = "staging" ]; then - DOCKER_TAGS=("gitea.perren.cloud/caperren/caperren-com:latest-staging") + DOCKER_TAGS="gitea.perren.cloud/caperren/caperren-com:latest-staging" else - DOCKER_TAGS=("gitea.perren.cloud/caperren/caperren-com:${{ steps.project_metadata.outputs.REPO_VERSION_HASH }},") - DOCKER_TAGS+=("gitea.perren.cloud/caperren/caperren-com:${{ steps.project_metadata.outputs.PROJECT_VERSION }},") - DOCKER_TAGS+=("gitea.perren.cloud/caperren/caperren-com:latest") + DOCKER_TAGS="gitea.perren.cloud/caperren/caperren-com:${{ steps.project_metadata.outputs.REPO_VERSION_HASH }}," + DOCKER_TAGS+="gitea.perren.cloud/caperren/caperren-com:${{ steps.project_metadata.outputs.PROJECT_VERSION }}," + DOCKER_TAGS+="gitea.perren.cloud/caperren/caperren-com:latest" fi echo $DOCKER_TAGS >> $GITHUB_OUTPUT -- 2.49.1 From d6a3341944a727d9ba63576a08c1fea70b6ef860 Mon Sep 17 00:00:00 2001 From: Corwin Perren Date: Wed, 9 Jul 2025 02:24:55 -0700 Subject: [PATCH 4/7] Actually assign environment variable for deploy targets and docker tags --- .gitea/workflows/build-common.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/build-common.yaml b/.gitea/workflows/build-common.yaml index 51c01a9..1a13545 100644 --- a/.gitea/workflows/build-common.yaml +++ b/.gitea/workflows/build-common.yaml @@ -44,7 +44,7 @@ jobs: DOCKER_TAGS+="gitea.perren.cloud/caperren/caperren-com:latest" fi - echo $DOCKER_TAGS >> $GITHUB_OUTPUT + echo DOCKER_TAGS=$DOCKER_TAGS >> $GITHUB_OUTPUT - name: Generate Docker Deployment Target id: generate_docker_deployment_target @@ -57,7 +57,7 @@ jobs: DOCKER_DEPLOY_TARGET="caperren-com" fi - echo $DOCKER_DEPLOY_TARGET >> $GITHUB_OUTPUT + echo DOCKER_DEPLOY_TARGET=$DOCKER_DEPLOY_TARGET >> $GITHUB_OUTPUT build_and_push: runs-on: ubuntu-latest -- 2.49.1 From cb2c9dece324d30059d497ca49f8536d2c93db88 Mon Sep 17 00:00:00 2001 From: Corwin Perren Date: Wed, 9 Jul 2025 02:32:18 -0700 Subject: [PATCH 5/7] Add manual jobs from common --- .gitea/workflows/build-production.yaml | 13 +++++++++++-- .gitea/workflows/build-staging.yaml | 13 +++++++++++-- 2 files changed, 22 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/build-production.yaml b/.gitea/workflows/build-production.yaml index ba51d70..2c4ff02 100644 --- a/.gitea/workflows/build-production.yaml +++ b/.gitea/workflows/build-production.yaml @@ -4,7 +4,16 @@ on: branches: [main] jobs: - build_test_deploy: + determine_version: uses: ./.gitea/workflows/build-common.yaml with: - build_environment: production \ No newline at end of file + build_environment: production + + build_and_push: + uses: ./.gitea/workflows/build-common.yaml + + test: + uses: ./.gitea/workflows/build-common.yaml + + deploy_production: + uses: ./.gitea/workflows/build-common.yaml \ No newline at end of file diff --git a/.gitea/workflows/build-staging.yaml b/.gitea/workflows/build-staging.yaml index a1328b8..68a38f3 100644 --- a/.gitea/workflows/build-staging.yaml +++ b/.gitea/workflows/build-staging.yaml @@ -4,7 +4,16 @@ on: types: [ opened, synchronize, reopened ] jobs: - build_test_deploy: + determine_version: uses: ./.gitea/workflows/build-common.yaml with: - build_environment: staging \ No newline at end of file + build_environment: staging + + build_and_push: + uses: ./.gitea/workflows/build-common.yaml + + test: + uses: ./.gitea/workflows/build-common.yaml + + deploy_production: + uses: ./.gitea/workflows/build-common.yaml \ No newline at end of file -- 2.49.1 From 88996012d791968eba0bb9502c81e54b0ee1ee7c Mon Sep 17 00:00:00 2001 From: Corwin Perren Date: Wed, 9 Jul 2025 02:37:04 -0700 Subject: [PATCH 6/7] Revert to copy/paste for now for staging --- .gitea/workflows/build-common.yaml | 124 ------------------------- .gitea/workflows/build-production.yaml | 87 +++++++++++++++-- .gitea/workflows/build-staging.yaml | 87 +++++++++++++++-- 3 files changed, 159 insertions(+), 139 deletions(-) delete mode 100644 .gitea/workflows/build-common.yaml diff --git a/.gitea/workflows/build-common.yaml b/.gitea/workflows/build-common.yaml deleted file mode 100644 index 1a13545..0000000 --- a/.gitea/workflows/build-common.yaml +++ /dev/null @@ -1,124 +0,0 @@ -name: Build and Test - -on: - workflow_call: - inputs: - build_environment: - description: "The build environment (e.g., staging, production)" - required: false - default: "development" - -jobs: - determine_version: - runs-on: ubuntu-latest - outputs: - repo_name: ${{ steps.project_metadata.outputs.REPO_NAME }} - repo_version_hash: ${{ steps.project_metadata.outputs.REPO_VERSION_HASH }} - project_version: ${{ steps.project_metadata.outputs.PROJECT_VERSION }} - docker_tags: ${{ steps.generate_docker_tags.outputs.DOCKER_TAGS }} - docker_deploy_target: ${{ steps.generate_docker_deployment_target.outputs.DOCKER_DEPLOY_TARGET }} - steps: - - name: Checkout Repository - uses: actions/checkout@v4 - - - name: Setup Node Environment - uses: actions/setup-node@v4 - - - name: Acquire Project Metadata - id: project_metadata - run: | - echo REPO_NAME=$(echo ${GITHUB_REPOSITORY} | awk -F"/" '{print $2}') >> $GITHUB_OUTPUT - echo REPO_VERSION_HASH=$(git describe --tags --always | sed 's/^v//') >> $GITHUB_OUTPUT - echo PROJECT_VERSION=$(npm pkg get version --workspaces=false | tr -d \") >> $GITHUB_OUTPUT - - - name: Generate Docker Tags - id: generate_docker_tags - run: | - DOCKER_TAGS="" - - if [ "${{ inputs.build_environment }}" = "staging" ]; then - DOCKER_TAGS="gitea.perren.cloud/caperren/caperren-com:latest-staging" - else - DOCKER_TAGS="gitea.perren.cloud/caperren/caperren-com:${{ steps.project_metadata.outputs.REPO_VERSION_HASH }}," - DOCKER_TAGS+="gitea.perren.cloud/caperren/caperren-com:${{ steps.project_metadata.outputs.PROJECT_VERSION }}," - DOCKER_TAGS+="gitea.perren.cloud/caperren/caperren-com:latest" - fi - - echo DOCKER_TAGS=$DOCKER_TAGS >> $GITHUB_OUTPUT - - - name: Generate Docker Deployment Target - id: generate_docker_deployment_target - run: | - DOCKER_DEPLOY_TARGET="" - - if [ "${{ inputs.build_environment }}" = "staging" ]; then - DOCKER_DEPLOY_TARGET=caperren-com-staging - else - DOCKER_DEPLOY_TARGET="caperren-com" - fi - - echo DOCKER_DEPLOY_TARGET=$DOCKER_DEPLOY_TARGET >> $GITHUB_OUTPUT - - build_and_push: - runs-on: ubuntu-latest - needs: determine_version - steps: - - name: Checkout caperren-com Repository - uses: actions/checkout@v4 - with: - path: caperren-com - - - name: Login to Docker Registry - uses: docker/login-action@v3 - with: - registry: gitea.perren.cloud - username: ${{ secrets.REGISTRY_USERNAME }} - password: ${{ secrets.ACTIONS_TOKEN }} - - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v3 - - - name: Build and Push - uses: docker/build-push-action@v5 - with: - context: caperren-com - push: true - tags: ${{ needs.determine_version.outputs.docker_tags }} - - test: - runs-on: ubuntu-latest - needs: build_and_push - steps: - - run: echo "Placeholder" - - deploy_production: - runs-on: ubuntu-latest - needs: test - steps: - - name: Pull New Image For App - run: | - curl -k -X 'POST' \ - 'https://caperren.com:444/api/v2.0/app/pull_images' \ - -H 'accept: */*' \ - -H 'Authorization: Bearer ${{ secrets.TRUENAS_CAPERRENCOM_API_KEY }}' \ - -H 'Content-Type: application/json' \ - -d '{ - "name": "${{ needs.determine_version.outputs.docker_deploy_target }}", - "options": {} - }' - - name: Stop App - run: | - curl -k -X 'POST' \ - 'https://caperren.com:444/api/v2.0/app/stop' \ - -H 'accept: */*' \ - -H 'Authorization: Bearer ${{ secrets.TRUENAS_CAPERRENCOM_API_KEY }}' \ - -H 'Content-Type: application/json' \ - -d '"${{ needs.determine_version.outputs.docker_deploy_target }}"' - - name: Start App - run: | - curl -k -X 'POST' \ - 'https://caperren.com:444/api/v2.0/app/stop' \ - -H 'accept: */*' \ - -H 'Authorization: Bearer ${{ secrets.TRUENAS_CAPERRENCOM_API_KEY }}' \ - -H 'Content-Type: application/json' \ - -d '"${{ needs.determine_version.outputs.docker_deploy_target }}"' diff --git a/.gitea/workflows/build-production.yaml b/.gitea/workflows/build-production.yaml index 2c4ff02..f146779 100644 --- a/.gitea/workflows/build-production.yaml +++ b/.gitea/workflows/build-production.yaml @@ -1,19 +1,92 @@ -name: Build and Test Production +name: Build and Test - Production on: push: branches: [main] jobs: determine_version: - uses: ./.gitea/workflows/build-common.yaml - with: - build_environment: production + runs-on: ubuntu-latest + outputs: + repo_name: ${{ steps.project_metadata.outputs.REPO_NAME }} + repo_version_hash: ${{ steps.project_metadata.outputs.REPO_VERSION_HASH }} + project_version: ${{ steps.project_metadata.outputs.PROJECT_VERSION }} + steps: + - name: Checkout Repository + uses: actions/checkout@v4 + + - name: Setup Node Environment + uses: actions/setup-node@v4 + + - name: Acquire Project Metadata + id: project_metadata + run: | + echo REPO_NAME=$(echo ${GITHUB_REPOSITORY} | awk -F"/" '{print $2}') >> $GITHUB_OUTPUT + echo REPO_VERSION_HASH=$(git describe --tags --always | sed 's/^v//') >> $GITHUB_OUTPUT + echo PROJECT_VERSION=$(npm pkg get version --workspaces=false | tr -d \") >> $GITHUB_OUTPUT build_and_push: - uses: ./.gitea/workflows/build-common.yaml + runs-on: ubuntu-latest + needs: determine_version + steps: + - name: Checkout caperren-com Repository + uses: actions/checkout@v4 + with: + path: caperren-com + + - name: Login to Docker Registry + uses: docker/login-action@v3 + with: + registry: gitea.perren.cloud + username: ${{ secrets.REGISTRY_USERNAME }} + password: ${{ secrets.ACTIONS_TOKEN }} + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + + - name: Build and Push + uses: docker/build-push-action@v5 + with: + context: caperren-com + push: true + tags: | + gitea.perren.cloud/caperren/${{ needs.determine_version.outputs.repo_name }}:${{ needs.determine_version.outputs.repo_version_hash }} + gitea.perren.cloud/caperren/${{ needs.determine_version.outputs.repo_name }}:${{ needs.determine_version.outputs.project_version }} + gitea.perren.cloud/caperren/caperren-com:latest test: - uses: ./.gitea/workflows/build-common.yaml + runs-on: ubuntu-latest + needs: build_and_push + steps: + - run: echo "Placeholder" deploy_production: - uses: ./.gitea/workflows/build-common.yaml \ No newline at end of file + runs-on: ubuntu-latest + needs: test + steps: + - name: Pull New Image For App + run: | + curl -k -X 'POST' \ + 'https://caperren.com:444/api/v2.0/app/pull_images' \ + -H 'accept: */*' \ + -H 'Authorization: Bearer ${{ secrets.TRUENAS_CAPERRENCOM_API_KEY }}' \ + -H 'Content-Type: application/json' \ + -d '{ + "name": "caperren-com", + "options": {} + }' + - name: Stop App + run: | + curl -k -X 'POST' \ + 'https://caperren.com:444/api/v2.0/app/stop' \ + -H 'accept: */*' \ + -H 'Authorization: Bearer ${{ secrets.TRUENAS_CAPERRENCOM_API_KEY }}' \ + -H 'Content-Type: application/json' \ + -d '"caperren-com"' + - name: Start App + run: | + curl -k -X 'POST' \ + 'https://caperren.com:444/api/v2.0/app/stop' \ + -H 'accept: */*' \ + -H 'Authorization: Bearer ${{ secrets.TRUENAS_CAPERRENCOM_API_KEY }}' \ + -H 'Content-Type: application/json' \ + -d '"caperren-com"' \ No newline at end of file diff --git a/.gitea/workflows/build-staging.yaml b/.gitea/workflows/build-staging.yaml index 68a38f3..e988437 100644 --- a/.gitea/workflows/build-staging.yaml +++ b/.gitea/workflows/build-staging.yaml @@ -1,19 +1,90 @@ -name: Build and Test Staging +name: Build and Test - Staging on: pull_request: types: [ opened, synchronize, reopened ] jobs: determine_version: - uses: ./.gitea/workflows/build-common.yaml - with: - build_environment: staging + runs-on: ubuntu-latest + outputs: + repo_name: ${{ steps.project_metadata.outputs.REPO_NAME }} + repo_version_hash: ${{ steps.project_metadata.outputs.REPO_VERSION_HASH }} + project_version: ${{ steps.project_metadata.outputs.PROJECT_VERSION }} + steps: + - name: Checkout Repository + uses: actions/checkout@v4 + + - name: Setup Node Environment + uses: actions/setup-node@v4 + + - name: Acquire Project Metadata + id: project_metadata + run: | + echo REPO_NAME=$(echo ${GITHUB_REPOSITORY} | awk -F"/" '{print $2}') >> $GITHUB_OUTPUT + echo REPO_VERSION_HASH=$(git describe --tags --always | sed 's/^v//') >> $GITHUB_OUTPUT + echo PROJECT_VERSION=$(npm pkg get version --workspaces=false | tr -d \") >> $GITHUB_OUTPUT build_and_push: - uses: ./.gitea/workflows/build-common.yaml + runs-on: ubuntu-latest + needs: determine_version + steps: + - name: Checkout caperren-com Repository + uses: actions/checkout@v4 + with: + path: caperren-com + + - name: Login to Docker Registry + uses: docker/login-action@v3 + with: + registry: gitea.perren.cloud + username: ${{ secrets.REGISTRY_USERNAME }} + password: ${{ secrets.ACTIONS_TOKEN }} + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + + - name: Build and Push + uses: docker/build-push-action@v5 + with: + context: caperren-com + push: true + tags: | + gitea.perren.cloud/caperren/caperren-com:latest-staging test: - uses: ./.gitea/workflows/build-common.yaml + runs-on: ubuntu-latest + needs: build_and_push + steps: + - run: echo "Placeholder" - deploy_production: - uses: ./.gitea/workflows/build-common.yaml \ No newline at end of file + deploy_staging: + runs-on: ubuntu-latest + needs: test + steps: + - name: Pull New Image For App + run: | + curl -k -X 'POST' \ + 'https://caperren.com:444/api/v2.0/app/pull_images' \ + -H 'accept: */*' \ + -H 'Authorization: Bearer ${{ secrets.TRUENAS_CAPERRENCOM_API_KEY }}' \ + -H 'Content-Type: application/json' \ + -d '{ + "name": "caperren-com-staging", + "options": {} + }' + - name: Stop App + run: | + curl -k -X 'POST' \ + 'https://caperren.com:444/api/v2.0/app/stop' \ + -H 'accept: */*' \ + -H 'Authorization: Bearer ${{ secrets.TRUENAS_CAPERRENCOM_API_KEY }}' \ + -H 'Content-Type: application/json' \ + -d '"caperren-com-staging"' + - name: Start App + run: | + curl -k -X 'POST' \ + 'https://caperren.com:444/api/v2.0/app/stop' \ + -H 'accept: */*' \ + -H 'Authorization: Bearer ${{ secrets.TRUENAS_CAPERRENCOM_API_KEY }}' \ + -H 'Content-Type: application/json' \ + -d '"caperren-com-staging"' \ No newline at end of file -- 2.49.1 From 4c6aa09c1260930ca2b1830db98ad26e5d8adb52 Mon Sep 17 00:00:00 2001 From: Corwin Perren Date: Wed, 9 Jul 2025 02:40:34 -0700 Subject: [PATCH 7/7] Staging to stg --- .gitea/workflows/build-staging.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/build-staging.yaml b/.gitea/workflows/build-staging.yaml index e988437..c05d138 100644 --- a/.gitea/workflows/build-staging.yaml +++ b/.gitea/workflows/build-staging.yaml @@ -69,7 +69,7 @@ jobs: -H 'Authorization: Bearer ${{ secrets.TRUENAS_CAPERRENCOM_API_KEY }}' \ -H 'Content-Type: application/json' \ -d '{ - "name": "caperren-com-staging", + "name": "caperren-com-stg", "options": {} }' - name: Stop App @@ -79,7 +79,7 @@ jobs: -H 'accept: */*' \ -H 'Authorization: Bearer ${{ secrets.TRUENAS_CAPERRENCOM_API_KEY }}' \ -H 'Content-Type: application/json' \ - -d '"caperren-com-staging"' + -d '"caperren-com-stg"' - name: Start App run: | curl -k -X 'POST' \ @@ -87,4 +87,4 @@ jobs: -H 'accept: */*' \ -H 'Authorization: Bearer ${{ secrets.TRUENAS_CAPERRENCOM_API_KEY }}' \ -H 'Content-Type: application/json' \ - -d '"caperren-com-staging"' \ No newline at end of file + -d '"caperren-com-stg"' \ No newline at end of file -- 2.49.1