Skip to content

Commit

Permalink
Merge pull request #483 from stlankes/ci
Browse files Browse the repository at this point in the history
publish container with httpd
  • Loading branch information
stlankes authored Sep 19, 2023
2 parents 681348b + d0f7cfd commit 95f028f
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
with:
repo: hermit-os/loader
file: rusty-loader-x86_64
- name: Create dockerfile
- name: Create dockerfile for rusty_demo
run: |
cat << END > Dockerfile
FROM scratch
Expand All @@ -50,3 +50,21 @@ jobs:
context: .
push: true
tags: ghcr.io/hermit-os/rusty_demo:latest
- name: Build httpd
run: cargo build -Zbuild-std=std,panic_abort --target x86_64-unknown-hermit -p httpd --release
- name: Copy httpd out of target dir
run: cp target/x86_64-unknown-hermit/release/httpd .
- name: Create dockerfile for httpd
run: |
cat << END > Dockerfile
FROM scratch
COPY rusty-loader-x86_64 hermit/rusty-loader
COPY httpd hermit/httpd
CMD ["/hermit/httpd"]
END
- name: Build and push container
uses: docker/build-push-action@v5
with:
context: .
push: true
tags: ghcr.io/hermit-os/httpd:latest

0 comments on commit 95f028f

Please sign in to comment.