Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
hermit-rs
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Analyze
Contributor analytics
CI/CD analytics
Repository analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ACS
Public
HermitOS
hermit-rs
Commits
633983f2
Unverified
Commit
633983f2
authored
6 months ago
by
Stefan Lankes
Committed by
GitHub
6 months ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #629 from stlankes/deploy
deploy axum example
parents
5ab21e2a
72ecb2f5
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.github/workflows/publish.yml
+19
-0
19 additions, 0 deletions
.github/workflows/publish.yml
with
19 additions
and
0 deletions
.github/workflows/publish.yml
+
19
−
0
View file @
633983f2
...
...
@@ -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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment