Merge pull request 'feat(codex): 部屬 Codex 映像檔' (#2) from develop into master
CD / 部屬映像檔 (push) Has been cancelled

Reviewed-on: #2
Reviewed-by: 系統管理員 <1+admin@noreply.localhost>
This commit was merged in pull request #2.
This commit is contained in:
2026-06-30 01:39:06 +00:00
2 changed files with 33 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
name: CD
on:
push:
branches:
- master
jobs:
docker-build:
name: 部屬映像檔
runs-on: ubuntu
steps:
- name: 部屬 Codex
uses: https://gitea.jsc.idv.tw/actions/docker-build@${{ vars.ACTION_DOCKER_BUILD_VERSION }}
with:
REGISTRY_USERNAME: ${{ gitea.repository_owner }}
REGISTRY_PASSWORD: ${{ secrets.TOKEN }}
IMAGE_OWNER: ${{ gitea.repository_owner }}
IMAGE_NAME: codex
RELEASE_VERSION: latest
+15
View File
@@ -0,0 +1,15 @@
FROM ubuntu:latest
ENV DEBIAN_FRONTEND=noninteractive
RUN apt update \
&& apt install -y --no-install-recommends \
ca-certificates \
nodejs \
npm \
&& npm install -g @openai/codex \
&& apt clean \
&& rm -rf /var/lib/apt/lists/*
CMD ["codex", "--version"]