diff --git a/.gitea/workflows/debug-build2.yml b/.gitea/workflows/debug-build2.yml new file mode 100644 index 000000000..7198e83a6 --- /dev/null +++ b/.gitea/workflows/debug-build2.yml @@ -0,0 +1,64 @@ +name: Debug Build Schedule v2 - Copy CI Build Structure +on: + push: + branches: + - debug/ci-build-schedule +concurrency: + group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.ref }} + cancel-in-progress: false +jobs: + build-staging: + name: Build Staging ${{ matrix.service_display }} Image + runs-on: host + timeout-minutes: ${{ matrix.timeout }} + if: github.event_name == "push" && github.ref_name == "debug/ci-build-schedule" + strategy: + fail-fast: false + matrix: + include: + - service: api + service_display: API + timeout: 10 + - service: worker + service_display: Worker + timeout: 10 + - service: web + service_display: Web + timeout: 10 + steps: + - name: Step 1 + shell: sh + run: echo "Step 1" + - name: Step 2 + shell: sh + run: echo "Step 2" + - name: Step 3 + shell: sh + run: echo "Step 3" + deploy-staging: + name: Deploy Staging + runs-on: host + timeout-minutes: 15 + if: github.event_name == "push" && github.ref_name == "debug/ci-build-schedule" + needs: + - build-staging + steps: + - name: Deploy + shell: sh + run: echo "Deploy" + build-production: + name: Build Production ${{ matrix.service_display }} Image + runs-on: host + timeout-minutes: ${{ matrix.timeout }} + if: startsWith(github.ref, "refs/tags/v") + strategy: + fail-fast: false + matrix: + include: + - service: api + service_display: API + timeout: 10 + steps: + - name: Step 1 + shell: sh + run: echo "Step 1"