Merge pull request #13 from RaspberryProgramming/test

Remove Self hosted runner
This commit is contained in:
Camerin Figueroa 2024-12-04 15:46:02 -05:00 committed by GitHub
commit 0394851e97
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 6 additions and 8 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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