~starkingdoms/starkingdoms

caa2ac21a15ef935c0d92a94567c1b0cc41268c9 — core 1 year, 8 months ago 04b4fe7
dockerfiles
M .dockerignore => .dockerignore +5 -1
@@ 1,1 1,5 @@
target
\ No newline at end of file
target/*/.fingerprint
target/*/build
target/*/deps
target/*/examples
target/*/incremental
\ No newline at end of file

M .woodpecker/.backplane.yaml => .woodpecker/.backplane.yaml +15 -1
@@ 43,4 43,18 @@ steps:
        from_secret: s3_id
      AWS_SECRET_ACCESS_KEY:
        from_secret: s3_key
      RUSTC_WRAPPER: sccache
\ No newline at end of file
      RUSTC_WRAPPER: sccache
  - name: build_image
    depends_on:
      - backplane_build
    image: woodpeckerci/plugin-docker-buildx
    settings:
      repo: registry.gitlab.com/starkingdoms.tk/starkingdoms.tk/backplane
      dockerfile: starkingdoms-backplane/Dockerfile
      username: c0repwn3r
      password:
        from_secret: gitlab_token
      tag: ${CI_COMMIT_TAG}
      dry_run: true
    when:
      event: tag
\ No newline at end of file

M .woodpecker/.client.yaml => .woodpecker/.client.yaml +1 -0
@@ 26,5 26,6 @@ steps:
      password:
        from_secret: gitlab_token
      tag: ${CI_COMMIT_TAG}
      dry_run: true
    when:
      event: tag
\ No newline at end of file

M .woodpecker/.server.yaml => .woodpecker/.server.yaml +15 -1
@@ 46,4 46,18 @@ steps:
        from_secret: s3_id
      AWS_SECRET_ACCESS_KEY:
        from_secret: s3_key
      RUSTC_WRAPPER: sccache
\ No newline at end of file
      RUSTC_WRAPPER: sccache
  - name: build_image
    depends_on:
      - server_build
    image: woodpeckerci/plugin-docker-buildx
    settings:
      repo: registry.gitlab.com/starkingdoms.tk/starkingdoms.tk/server
      dockerfile: server/Dockerfile
      username: c0repwn3r
      password:
        from_secret: gitlab_token
      tag: ${CI_COMMIT_TAG}
      dry_run: true
    when:
      event: tag
\ No newline at end of file

M server/Dockerfile => server/Dockerfile +4 -4
@@ 1,6 1,6 @@
FROM rust:alpine
FROM debian:bookworm-slim

WORKDIR /build
COPY .. .
COPY target/release-ci/starkingdoms-server /bin/starkingdoms-server

RUN cargo build --profile release-ci
\ No newline at end of file
EXPOSE 3000
ENTRYPOINT ["starkingdoms-server"]
\ No newline at end of file

A starkingdoms-backplane/Dockerfile => starkingdoms-backplane/Dockerfile +5 -0
@@ 0,0 1,5 @@
FROM debian:bookworm-slim

COPY target/release-ci/starkingdoms-backplane /bin/starkingdoms-backplane

ENTRYPOINT ["starkingdoms-backplane", "/etc/starkingdoms/backplane.toml"]
\ No newline at end of file

M starkingdoms-client/Dockerfile => starkingdoms-client/Dockerfile +2 -4
@@ 1,5 1,3 @@
FROM node:21-alpine
FROM nginx:alpine

COPY starkingdoms-client/dist .

RUN cd dist && node .
COPY starkingdoms-client/dist /usr/share/nginx/html
\ No newline at end of file