|
1 | 1 | name: Aspect Workflows Delivery |
2 | 2 |
|
3 | 3 | on: |
4 | | - # Allow this to be triggered manually via the GH UI. See |
5 | | - # https://docs.aspect.build/workflows/delivery#break-glass-deliver-on-red |
6 | | - workflow_dispatch: |
7 | | - inputs: |
8 | | - delivery_commit: |
9 | | - description: The commit to checkout and run the delivery from. Targets listed in the delivery manifest for this commit will be delivered unless specific targets are listed in `delivery_targets`. |
10 | | - type: string |
11 | | - required: true |
12 | | - delivery_targets: |
13 | | - description: List of Bazel targets to deliver, delimited by spaces. For example, \`//app/a:push_release //app/b:push_release\`. If empty, targets listed in the delivery manifest for the target commit will be delivered. |
14 | | - type: string |
15 | | - required: false |
| 4 | + # Allow this to be triggered manually via the GH UI. See |
| 5 | + # https://docs.aspect.build/workflows/delivery#break-glass-deliver-on-red |
| 6 | + workflow_dispatch: |
| 7 | + inputs: |
| 8 | + delivery_commit: |
| 9 | + description: The commit to checkout and run the delivery from. Targets listed in the delivery manifest for this commit will be delivered unless specific targets are listed in `delivery_targets`. |
| 10 | + type: string |
| 11 | + required: true |
| 12 | + delivery_targets: |
| 13 | + description: List of Bazel targets to deliver, delimited by spaces. For example, \`//app/a:push_release //app/b:push_release\`. If empty, targets listed in the delivery manifest for the target commit will be delivered. |
| 14 | + type: string |
| 15 | + required: false |
16 | 16 |
|
17 | 17 | jobs: |
18 | | - delivery: |
19 | | - name: Aspect Workflows Delivery |
20 | | - runs-on: [self-hosted, aspect-workflows, aspect-default] |
21 | | - env: |
22 | | - ASPECT_WORKFLOWS_BIN_DIR: /etc/aspect/workflows/bin |
23 | | - steps: |
24 | | - - name: Configure environment |
25 | | - run: ${ASPECT_WORKFLOWS_BIN_DIR}/configure_workflows_env |
26 | | - - uses: actions/checkout@v4 |
27 | | - with: |
28 | | - ref: ${{ inputs.delivery_commit }} |
29 | | - # Fetch all history for all tags and branches, so the --workspace_status_command can find |
30 | | - # any tags that it needs for `git describe`. |
31 | | - # See https://github.com/actions/checkout#Fetch-all-history-for-all-tags-and-branches |
32 | | - fetch-depth: 0 |
33 | | - - name: Agent health checks |
34 | | - run: ${ASPECT_WORKFLOWS_BIN_DIR}/agent_health_check |
35 | | - - name: Run Delivery |
36 | | - uses: aspect-build/[email protected] |
37 | | - with: |
38 | | - task: delivery |
| 18 | + delivery: |
| 19 | + name: Aspect Workflows Delivery |
| 20 | + runs-on: [self-hosted, aspect-workflows, aspect-default] |
39 | 21 | env: |
40 | | - DELIVERY_COMMIT: ${{ inputs.delivery_commit }} |
41 | | - DELIVERY_TARGETS: ${{ inputs.delivery_targets }} |
| 22 | + ASPECT_WORKFLOWS_BIN_DIR: /etc/aspect/workflows/bin |
| 23 | + steps: |
| 24 | + - name: Configure environment |
| 25 | + run: ${ASPECT_WORKFLOWS_BIN_DIR}/configure_workflows_env |
| 26 | + - uses: actions/checkout@v4 |
| 27 | + with: |
| 28 | + ref: ${{ inputs.delivery_commit }} |
| 29 | + # Fetch all history for all tags and branches, so the --workspace_status_command can find |
| 30 | + # any tags that it needs for `git describe`. |
| 31 | + # See https://github.com/actions/checkout#Fetch-all-history-for-all-tags-and-branches |
| 32 | + fetch-depth: 0 |
| 33 | + - name: Agent health checks |
| 34 | + run: ${ASPECT_WORKFLOWS_BIN_DIR}/agent_health_check |
| 35 | + - name: Run Delivery |
| 36 | + uses: aspect-build/[email protected] |
| 37 | + with: |
| 38 | + task: delivery |
| 39 | + env: |
| 40 | + DELIVERY_COMMIT: ${{ inputs.delivery_commit }} |
| 41 | + DELIVERY_TARGETS: ${{ inputs.delivery_targets }} |
0 commit comments