Skip to content

Commit

Permalink
Merge pull request #629 from stlankes/deploy
Browse files Browse the repository at this point in the history
deploy axum example
  • Loading branch information
stlankes authored Oct 4, 2024
2 parents 5ab21e2 + 72ecb2f commit 633983f
Showing 1 changed file with 19 additions and 0 deletions.
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

0 comments on commit 633983f

Please sign in to comment.