Add authenticated Codex HTTP gateway and worker
Check Codex HTTP gateway / verify (push) Successful in 11m53s
Check Codex HTTP gateway / verify (push) Successful in 11m53s
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
name: Check Codex HTTP gateway
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [main, 'codex/**']
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
verify:
|
||||
runs-on: ces-control
|
||||
timeout-minutes: 20
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-go@v5
|
||||
with:
|
||||
go-version-file: go.mod
|
||||
cache: false
|
||||
- name: Format, test and vet
|
||||
run: |
|
||||
set -eu
|
||||
test -z "$(gofmt -l *.go)"
|
||||
go test -race ./...
|
||||
go vet ./...
|
||||
- name: Validate Docker Compose and build images
|
||||
run: |
|
||||
set -eu
|
||||
docker compose config -q
|
||||
build_ids=$(mktemp -d)
|
||||
trap 'rm -r "$build_ids"' EXIT
|
||||
docker build --target gateway --iidfile "$build_ids/gateway" .
|
||||
docker build --target worker --iidfile "$build_ids/worker" .
|
||||
docker run --rm --network none \
|
||||
--entrypoint /opt/codex/node_modules/.bin/codex "$(cat "$build_ids/worker")" --version \
|
||||
| grep -Fx 'codex-cli 0.172.0'
|
||||
Reference in New Issue
Block a user