Fix Docker Builds in CI #21
2 changed files with 9 additions and 5 deletions
|
|
@ -11,8 +11,10 @@ jobs:
|
|||
steps:
|
||||
- name: Checkout Repo
|
||||
uses: actions/checkout@v4
|
||||
- run: |
|
||||
apt update && apt install -y docker.io
|
||||
- name: Install Docker
|
||||
run: |
|
||||
curl -fsSL https://get.docker.com -o get-docker.sh
|
||||
sh get-docker.sh
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
- name: Login to Forgejo Container Registry
|
||||
|
|
@ -31,8 +33,10 @@ jobs:
|
|||
steps:
|
||||
- name: Checkout Repo
|
||||
uses: actions/checkout@v4
|
||||
- run: |
|
||||
apt update && apt install -y docker.io
|
||||
- name: Install Docker
|
||||
run: |
|
||||
curl -fsSL https://get.docker.com -o get-docker.sh
|
||||
sh get-docker.sh
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
- name: Login to Forgejo Container Registry
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ COPY src/ src/
|
|||
COPY migrations/ migrations/
|
||||
|
||||
# Build the application
|
||||
RUN cargo build --release
|
||||
RUN --mount=source=.sqlx,target=.sqlx cargo build --release
|
||||
|
||||
# Runtime stage
|
||||
FROM alpine:latest
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue