Merge pull request #13 from RaspberryProgramming/test
Remove Self hosted runner
This commit is contained in:
commit
0394851e97
|
|
@ -9,7 +9,7 @@ on:
|
||||||
jobs:
|
jobs:
|
||||||
|
|
||||||
build:
|
build:
|
||||||
runs-on: self-hosted
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- run: docker build . -t raspberrypi99/request-mirror
|
- run: docker build . -t raspberrypi99/request-mirror
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@ on:
|
||||||
jobs:
|
jobs:
|
||||||
|
|
||||||
build:
|
build:
|
||||||
runs-on: self-hosted
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- run: docker build . -t raspberrypi99/request-mirror
|
- run: docker build . -t raspberrypi99/request-mirror
|
||||||
|
|
|
||||||
|
|
@ -11,9 +11,7 @@ env:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
runs-on: self-hosted
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout sources
|
- name: Checkout sources
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
|
||||||
|
|
@ -1,14 +1,14 @@
|
||||||
FROM rustlang/rust:nightly as builder
|
FROM rustlang/rust:nightly AS builder
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY src ./src
|
COPY src ./src
|
||||||
COPY Cargo.toml .
|
COPY Cargo.toml .
|
||||||
COPY Cargo.lock .
|
COPY Cargo.lock .
|
||||||
RUN cargo install --path .
|
RUN cargo install --path .
|
||||||
|
|
||||||
FROM rustlang/rust:nightly as runner
|
FROM rustlang/rust:nightly AS runner
|
||||||
COPY migrations /migrations
|
COPY migrations /migrations
|
||||||
RUN cargo install diesel_cli --no-default-features --features postgres
|
RUN cargo install diesel_cli --no-default-features --features postgres
|
||||||
RUN apt update && apt install -y libpq-dev libc6
|
RUN apt update && apt upgrade -y && apt install -y libpq-dev libc6
|
||||||
COPY --from=builder /usr/local/cargo/bin/request-mirror /usr/local/bin/request-mirror
|
COPY --from=builder /usr/local/cargo/bin/request-mirror /usr/local/bin/request-mirror
|
||||||
COPY ./templates /templates
|
COPY ./templates /templates
|
||||||
COPY .env.docker /.env
|
COPY .env.docker /.env
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue