-
Notifications
You must be signed in to change notification settings - Fork 0
70 lines (61 loc) · 2.2 KB
/
published-compose.yml
File metadata and controls
70 lines (61 loc) · 2.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
name: Published Compose Smoke
on:
workflow_dispatch:
inputs:
server_tag:
description: "Published durableworkflow/server tag to test when DW_SERVER_IMAGE is not set"
required: false
default: "0.2"
server_image:
description: "Full image reference or digest override, for example ghcr.io/durable-workflow/server:0.2"
required: false
default: ""
permissions:
contents: read
concurrency:
group: published-compose-${{ github.event_name }}-${{ github.ref }}
cancel-in-progress: false
jobs:
smoke:
name: ${{ matrix.platform }} ${{ matrix.profile }} published image
runs-on: ubuntu-latest
timeout-minutes: 35
strategy:
fail-fast: false
matrix:
include:
- platform: linux/amd64
profile: local
port: "18080"
- platform: linux/arm64
profile: local
port: "18081"
- platform: linux/amd64
profile: production
port: "18082"
- platform: linux/arm64
profile: production
port: "18083"
steps:
- name: Checkout server
uses: actions/checkout@v6
- name: Set up QEMU
if: matrix.platform == 'linux/arm64'
uses: docker/setup-qemu-action@v4
- name: Set Compose image selector
env:
INPUT_SERVER_TAG: ${{ github.event_name == 'workflow_dispatch' && inputs.server_tag || '0.2' }}
INPUT_SERVER_IMAGE: ${{ github.event_name == 'workflow_dispatch' && inputs.server_image || '' }}
run: |
echo "DW_SERVER_TAG=${INPUT_SERVER_TAG:-0.2}" >> "$GITHUB_ENV"
if [ -n "$INPUT_SERVER_IMAGE" ]; then
echo "DW_SERVER_IMAGE=$INPUT_SERVER_IMAGE" >> "$GITHUB_ENV"
fi
- name: Smoke published Compose stack
env:
DW_SERVER_PLATFORM: ${{ matrix.platform }}
DW_PUBLISHED_COMPOSE_PROFILE: ${{ matrix.profile }}
DW_PUBLISHED_COMPOSE_PROJECT: published-compose-${{ github.run_id }}-${{ github.run_attempt }}-${{ matrix.profile }}-${{ matrix.port }}
SERVER_PORT: ${{ matrix.port }}
DW_AUTH_TOKEN: published-compose-token
run: scripts/smoke-published-compose.sh