Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

deploy axum example #629

Merged
merged 1 commit into from
Oct 4, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,3 +119,22 @@ jobs:
context: .
push: true
tags: ghcr.io/hermit-os/tls:latest
- name: Build axum
run: cargo build -Zbuild-std=std,panic_abort --target x86_64-unknown-hermit -p axum-example --features hermit/dhcpv4 --release
- name: Copy axum out of target dir
run: cp target/x86_64-unknown-hermit/release/axum-example .
- name: Create dockerfile for axum
run: |
cat << END > Dockerfile
FROM scratch
COPY hermit-loader-x86_64 hermit/hermit-loader
COPY hermit-loader-x86_64-fc hermit/hermit-loader-fc
COPY axum-example hermit/axum-example
CMD ["/hermit/axum-example"]
END
- name: Build and push container
uses: docker/build-push-action@v6
with:
context: .
push: true
tags: ghcr.io/hermit-os/axum-example:latest