Skip to content
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/actions/setup-go-with-takumi-guard/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ description: Set up Go and Takumi Guard
inputs:
bot-id:
description: Takumi Guard bot ID
required: false
required: true
Comment thread
takahiro-yamada marked this conversation as resolved.
Resolved

runs:
using: composite
Expand Down
21 changes: 21 additions & 0 deletions .github/actions/setup-pnpm-and-node-with-takumi-guard/action.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Setup Pnpm and Node with Takumi Guard
description: Set up Pnpm and Node and Takumi Guard
inputs:
bot-id:
description: Takumi Guard bot ID
required: true

runs:
using: composite
steps:
Comment thread
takahiro-yamada marked this conversation as resolved.
Resolved
- uses: pnpm/action-setup@ea17c68df8912ef543352723c149a84f56e3d413 # v6.1.0
with:
version: 11
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with:
node-version: 26
cache: 'pnpm'
cache-dependency-path: ./pnpm-lock.yaml
- uses: flatt-security/setup-takumi-guard-npm@14f07d0cbc739b42a1b7c70a04c2b84cd1318ddd # v1.4.0
with:
bot-id: ${{ inputs.bot-id }}
Comment thread
takahiro-yamada marked this conversation as resolved.
Resolved
5 changes: 5 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ jobs:
uses: ./.github/workflows/frontend.yaml
permissions:
contents: read
id-token: write
e2e:
name: End-to-end Test
runs-on: ubuntu-24.04
Expand Down Expand Up @@ -205,6 +206,10 @@ jobs:
- uses: ./.github/actions/setup-go-with-takumi-guard
with:
bot-id: ${{ vars.TAKUMI_GUARD_BOT_ID }}
# `tilt ci` runs `make frontend` (pnpm install) via the Tiltfile.
- uses: ./.github/actions/setup-pnpm-and-node-with-takumi-guard
with:
bot-id: ${{ vars.TAKUMI_GUARD_BOT_ID }}
- uses: ./.github/actions/download-ui-dist
- uses: ./.github/actions/setup-aqua
- run: make dev
Expand Down
11 changes: 3 additions & 8 deletions .github/workflows/frontend.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,12 @@ jobs:
runs-on: ubuntu-24.04
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- uses: pnpm/action-setup@0977fd99725f1db4007ccb2928dbb4e90d06cc86 # v6.0.10
- uses: ./.github/actions/setup-pnpm-and-node-with-takumi-guard
with:
version: 11
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version: 26
cache: 'pnpm'
cache-dependency-path: ./pnpm-lock.yaml
- uses: flatt-security/setup-takumi-guard-npm@6d4182745c1e474c35a023573c2612c085be45a4 # v1.2.0
bot-id: ${{ vars.TAKUMI_GUARD_BOT_ID }}
- run: make frontend
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
Expand Down
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ FROM ghcr.io/cybozu/ubuntu:24.04.20261021@sha256:7bc89f8e6e4dfe609ca671526e3bbee

LABEL org.opencontainers.image.source=https://github.com/cybozu-go/website-operator

FROM base as website-operator
FROM base AS website-operator
ARG TARGETPLATFORM
COPY $TARGETPLATFORM/website-operator /
USER 1000:1000
ENTRYPOINT ["/website-operator"]

FROM base as repo-checker
FROM base AS repo-checker
RUN apt-get update \
&& apt-get install -y --no-install-recommends git openssh-client \
&& rm -rf /var/lib/apt/lists/*
Expand All @@ -17,7 +17,7 @@ COPY $TARGETPLATFORM/repo-checker /
USER 1000:1000
ENTRYPOINT ["/repo-checker"]

FROM base as ui
FROM base AS ui
COPY ui/frontend/dist /dist
ARG TARGETPLATFORM
COPY $TARGETPLATFORM/website-operator-ui /
Expand Down
1 change: 1 addition & 0 deletions e2e/manifests/manager/build-mkdocs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ git checkout $REVISION
python3 -m venv venv
source venv/bin/activate

export PIP_INDEX_URL=https://pypi.flatt.tech/simple/

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@takahiro-yamada Could you please check this?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed with 684b782

pip3 install -r requirements.txt
mkdocs build

Expand Down
Loading