-
Notifications
You must be signed in to change notification settings - Fork 2
78 lines (71 loc) · 1.94 KB
/
Copy pathdocker-ops.yml
File metadata and controls
78 lines (71 loc) · 1.94 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
71
72
73
74
75
76
77
78
---
name: Build/Release
"on":
push:
branches:
- "**"
paths:
- ".github/workflows/docker-ops.yml"
- ".dockerignore"
- "Dockerfile"
- "bin/**"
- "lib/**"
- "src/**"
- "etc/**"
- "test/**"
- "Makefile"
- "Makefile.variables"
- "ci/**"
workflow_dispatch:
jobs:
docker-ops:
name: Docker Ops
permissions:
contents: write
security-events: write
id-token: write
uses: udx/reusable-workflows/.github/workflows/docker-ops.yml@master
with:
image_name: usabilitydynamics/udx-worker
docker_login: usabilitydynamics
docker_org: usabilitydynamics
docker_repo: udx-worker
release_branch: latest
version_config_path: ci/git-version.yml
secrets:
docker_token: ${{ secrets.DOCKER_TOKEN }}
runtime-output:
name: Runtime Output
needs: docker-ops
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout code
uses: actions/checkout@v7
- name: Build worker image
run: make build IMAGE_NAME=worker-runtime-output TAG="${GITHUB_SHA}"
- name: Capture runtime output
run: |
mkdir -p runtime-output
docker run --rm \
-e WORKER_RUNTIME_OUTPUT=true \
"worker-runtime-output:${GITHUB_SHA}" \
true \
> runtime-output/runtime.json
jq -e '.env | type == "object"' runtime-output/runtime.json
jq -c . runtime-output/runtime.json
- name: Write runtime output summary
run: |
{
echo "### Worker runtime output"
echo
echo '```json'
jq . runtime-output/runtime.json
echo '```'
} >> "$GITHUB_STEP_SUMMARY"
- name: Upload runtime output artifact
uses: actions/upload-artifact@v7
with:
name: worker-runtime-output
path: runtime-output/runtime.json