Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
5 changes: 5 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ include:
- twilio-action
- stripe-action

.rust-actions:
- cron-action
- rest-action

test-node:
image: node:24.10.0
stage: test
Expand All @@ -47,6 +51,7 @@ build-docker:
parallel:
matrix:
- C0_ACTION: !reference [.node-actions]
- C0_ACTION: !reference [.rust-actions]
script:
- cd actions/$C0_ACTION
- echo $C0_GH_TOKEN | docker login -u $ --password-stdin ghcr.io
Expand Down
15 changes: 15 additions & 0 deletions actions/cron-action/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
FROM rust:1.96-alpine AS builder

RUN apk add --no-cache musl-dev

WORKDIR /app
COPY Cargo.toml Cargo.lock ./
COPY src ./src

RUN cargo build --release

FROM alpine:3.23

COPY --from=builder /app/target/release/cron-action /cron-action

CMD ["/cron-action"]
15 changes: 15 additions & 0 deletions actions/rest-action/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
FROM rust:1.96-alpine AS builder

RUN apk add --no-cache musl-dev

WORKDIR /app
COPY Cargo.toml Cargo.lock ./
COPY src ./src

RUN cargo build --release

FROM alpine:3.23

COPY --from=builder /app/target/release/rest-action /rest-action

CMD ["/rest-action"]