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