Compare commits
No commits in common. "b16d9c3b714d7ba8577d91e13c381ad351b17a0d" and "481c2c36482a82d9e904904d0fde22efc23eee8a" have entirely different histories.
b16d9c3b71
...
481c2c3648
2 changed files with 4 additions and 11 deletions
|
@ -3,22 +3,15 @@ when:
|
|||
branch: main
|
||||
|
||||
steps:
|
||||
- name: build-x86_64
|
||||
- name: build
|
||||
image: rust:bookworm
|
||||
commands:
|
||||
cargo build --release
|
||||
cp target/release/backend target/backend-amd64
|
||||
- name: build-arm64
|
||||
image: rust:bookworm
|
||||
commands:
|
||||
rustup target add aarch64-unknown-linux-gnu
|
||||
cargo build --target=aarch64-unknown-linux-gnu --release
|
||||
cp target/aarch64-unknown-linux-gnu/release/backend target/backend-arm64
|
||||
- name: container-build-and-publish
|
||||
image: docker
|
||||
commands:
|
||||
- docker login --username radical --password $PASSWORD git.gorb.app
|
||||
- docker buildx build --platform linux/amd64,linux/arm64 --rm --push -t git.gorb.app/gorb/backend:main .
|
||||
- docker build --rm --push -t git.gorb.app/gorb/backend:main .
|
||||
environment:
|
||||
PASSWORD:
|
||||
from_secret: docker_password
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
FROM debian:12-slim
|
||||
FROM debian:12
|
||||
|
||||
RUN apt update && apt install libssl3 && rm -rf /var/lib/apt/lists/* /var/cache/apt/* /tmp/*
|
||||
|
||||
COPY target/release/backend-${TARGETARCH} /usr/bin/gorb-backend
|
||||
COPY target/release/backend /usr/bin/gorb-backend
|
||||
|
||||
COPY entrypoint.sh /usr/bin/entrypoint.sh
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue