ci: test ci
This commit is contained in:
parent
ee8211a321
commit
315a8b9954
3 changed files with 17 additions and 26 deletions
|
@ -3,11 +3,20 @@ when:
|
|||
branch: main
|
||||
|
||||
steps:
|
||||
- name: rust-build
|
||||
image: rust:bookworm
|
||||
commands:
|
||||
- cargo install cross
|
||||
- cargo build --release
|
||||
- cross build --target aarch64-unknown-linux-gnu --release
|
||||
environment:
|
||||
CROSS_CONTAINER_IN_CONTAINER: "true"
|
||||
volumes:
|
||||
- /var/run/podman/podman.sock:/var/run/docker.sock
|
||||
- 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 buildx build --platform linux/amd64,linux/arm64 --rm -t gorb/backend:main .
|
||||
environment:
|
||||
PASSWORD:
|
||||
from_secret: docker_password
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue